instruction
stringlengths 67
299
| input
stringlengths 110
572
| output
stringlengths 18
557
|
---|---|---|
Write a SQL query that answers the following question: What is the greatest number of wins Ken Bouchard had in a season? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2333416_2 (wins INTEGER) | SELECT MIN(wins) FROM table_2333416_2 |
Write a SQL query that answers the following question: What region is dated April 30, 2004, and cataloged Nebdj058? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_37 (region VARCHAR, date VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_37 WHERE date = "april 30, 2004" AND catalog = "nebdj058" |
Write a SQL query that answers the following question: What's the source of wealth of the person worth $17 billion? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_10 (source VARCHAR, net_worth_us$__billions_ VARCHAR) | SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 17 |
Write a SQL query that answers the following question: What is the most lost games for the team with a difference smaller than 86 and points of 32? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (lost INTEGER, points VARCHAR, difference VARCHAR) | SELECT MAX(lost) FROM table_name_74 WHERE points = 32 AND difference < 86 |
Write a SQL query that answers the following question: What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR) | SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = "antonio davis (12)" |
Write a SQL query that answers the following question: What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (podiums INTEGER, series VARCHAR, poles VARCHAR) | SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1 |
Write a SQL query that answers the following question: What was the term of Bruce Biers Kendall whose hometown is Anchorage? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (term VARCHAR, hometown VARCHAR, name VARCHAR) | SELECT term FROM table_name_6 WHERE hometown = "anchorage" AND name = "bruce biers kendall" |
Write a SQL query that answers the following question: When the share of votes is 33.9%, what's the highest total amount of seats? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR) | SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.9%" |
Write a SQL query that answers the following question: When was Kamba active? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10602294_1 (dates_active VARCHAR, name VARCHAR) | SELECT dates_active FROM table_10602294_1 WHERE name = "Kamba" |
Write a SQL query that answers the following question: When is the first elected in the Florida 19 district? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19" |
Write a SQL query that answers the following question: What station on the network is tv3? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_160728_4 (network VARCHAR, station VARCHAR) | SELECT network FROM table_160728_4 WHERE station = "TV3" |
Write a SQL query that answers the following question: Show the station name with at least two trains. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) | SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING COUNT(*) >= 2 |
Write a SQL query that answers the following question: What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR) | SELECT pick FROM table_name_95 WHERE round > 1 AND school_club_team = "south carolina" |
Write a SQL query that answers the following question: What is the Points for number of the team with a 10 Tries against number? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_44 (points_for VARCHAR, tries_against VARCHAR) | SELECT points_for FROM table_name_44 WHERE tries_against = "10" |
Write a SQL query that answers the following question: What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) | SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged" |
Write a SQL query that answers the following question: What is the Label of the CD released in Germany on June 6, 2005? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (label VARCHAR, format VARCHAR, date VARCHAR, region VARCHAR) | SELECT label FROM table_name_8 WHERE date = "june 6, 2005" AND region = "germany" AND format = "cd" |
Write a SQL query that answers the following question: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR) | SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1 |
Write a SQL query that answers the following question: Who manufactured the car driven by Will Power and Scott Dixon had the most laps? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27913160_3 (manufacturer VARCHAR, driver VARCHAR, most_laps_led VARCHAR) | SELECT manufacturer FROM table_27913160_3 WHERE driver = "Will Power" AND most_laps_led = "Scott Dixon" |
Write a SQL query that answers the following question: Which Result has a Venue of A, and an Opponent of manchester united? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united" |
Write a SQL query that answers the following question: What argon has a neon of 10.5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (argon VARCHAR, neon VARCHAR) | SELECT argon FROM table_name_51 WHERE neon = "10.5" |
Write a SQL query that answers the following question: What is the Opponent from the final with a Partner named jorgelina cravero? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (opponent_in_the_final VARCHAR, partner VARCHAR) | SELECT opponent_in_the_final FROM table_name_83 WHERE partner = "jorgelina cravero" |
Write a SQL query that answers the following question: What was Trevard Lindley's number? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14624447_33 (number INTEGER, name VARCHAR) | SELECT MAX(number) FROM table_14624447_33 WHERE name = "Trevard Lindley" |
Write a SQL query that answers the following question: What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR, transfer_fee VARCHAR) | SELECT name FROM table_name_49 WHERE goals > 14 AND transfer_fee = "youth system" |
Write a SQL query that answers the following question: How much money did gaming alerts ask for? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (money_requested__ VARCHAR, company_or_product_name VARCHAR) | SELECT COUNT(money_requested__) AS £_ FROM table_name_6 WHERE company_or_product_name = "gaming alerts" |
Write a SQL query that answers the following question: Name the date with visiting team of philadelphia eagles | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_47 (date VARCHAR, visiting_team VARCHAR) | SELECT date FROM table_name_47 WHERE visiting_team = "philadelphia eagles" |
Write a SQL query that answers the following question: How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_16072430_1 (_number VARCHAR, weekly_rank VARCHAR, timeslot VARCHAR) | SELECT COUNT(_number) FROM table_16072430_1 WHERE weekly_rank = "TBA" AND timeslot = "8:00 P.M." |
Write a SQL query that answers the following question: What is Muzzle energy, when Source is hornady? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (muzzle_energy VARCHAR, source VARCHAR) | SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady" |
Write a SQL query that answers the following question: What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (score VARCHAR, opponents_in_the_final VARCHAR) | SELECT score FROM table_name_46 WHERE opponents_in_the_final = "vitalia diatchenko irena pavlovic" |
Write a SQL query that answers the following question: What is the Home team with an Away team that is oxford united? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_87 WHERE away_team = "oxford united" |
Write a SQL query that answers the following question: What is the code nickname where Steve Mayne is the coach? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_18752986_1 (nickname VARCHAR, coach VARCHAR) | SELECT nickname FROM table_18752986_1 WHERE coach = "Steve Mayne" |
Write a SQL query that answers the following question: What are the high rebounds in the jamal crawford (20) high points? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, high_points VARCHAR) | SELECT high_rebounds FROM table_27734577_8 WHERE high_points = "Jamal Crawford (20)" |
Write a SQL query that answers the following question: WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR, category VARCHAR) | SELECT result FROM table_name_79 WHERE year = 2003 AND category = "best urban/alternative performance" |
Write a SQL query that answers the following question: When was radek necas with less than 2.04 height born? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR) | SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04 |
Write a SQL query that answers the following question: Name surface for 8 round | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23385853_1 (surface VARCHAR, round VARCHAR) | SELECT surface FROM table_23385853_1 WHERE round = 8 |
Write a SQL query that answers the following question: What's the quarterfinals when the rank was bronze? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_79 (quarterfinals VARCHAR, rank VARCHAR) | SELECT quarterfinals FROM table_name_79 WHERE rank = "bronze" |
Write a SQL query that answers the following question: Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_5 (written_by VARCHAR, prod_code VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_name_5 WHERE prod_code > 1.4 AND directed_by = "rick wallace" |
Write a SQL query that answers the following question: What is Inaba's maximum score? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_18595004_7 (inaba INTEGER) | SELECT MAX(inaba) FROM table_18595004_7 |
Write a SQL query that answers the following question: What are the apps for less than 61 goals and before rank 6? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR) | SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 |
Write a SQL query that answers the following question: How many attended on may 6? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6" |
Write a SQL query that answers the following question: What is the average election result for the province of Grosseto from 1766 and prior? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR) | SELECT AVG(election) FROM table_name_50 WHERE province = "grosseto" AND established < 1766 |
Write a SQL query that answers the following question: When a school has authority of state and a decile greater than 1, what is the roll number? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (roll VARCHAR, authority VARCHAR, decile VARCHAR) | SELECT roll FROM table_name_66 WHERE authority = "state" AND decile > 1 |
Write a SQL query that answers the following question: What is Date, when Label is Jugoton? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR) | SELECT date FROM table_name_48 WHERE label = "jugoton" |
Write a SQL query that answers the following question: What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_62 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR) | SELECT city FROM table_name_62 WHERE astc_member = "no" AND state = "california" AND aam_member = "yes" |
Write a SQL query that answers the following question: What is the average number for goals less than 73? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER) | SELECT COUNT(average) FROM table_name_23 WHERE goals < 73 |
Write a SQL query that answers the following question: Result F–A of 5–0 had what date? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_72 (date VARCHAR, result_f_a VARCHAR) | SELECT date FROM table_name_72 WHERE result_f_a = "5–0" |
Write a SQL query that answers the following question: What nationality was the round 6 draft pick? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_44 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_44 WHERE round = 6 |
Write a SQL query that answers the following question: Which player from the 2004 CFL draft attended Wilfrid Laurier? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10975034_2 (player VARCHAR, college VARCHAR) | SELECT player FROM table_10975034_2 WHERE college = "Wilfrid Laurier" |
Write a SQL query that answers the following question: What is the airport with the IATA MEL? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17419587_1 (airport VARCHAR, iata VARCHAR) | SELECT COUNT(airport) FROM table_17419587_1 WHERE iata = "MEL" |
Write a SQL query that answers the following question: What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_70 (date VARCHAR, decision VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_70 WHERE decision = "lehtonen" AND attendance > 17 OFFSET 731 |
Write a SQL query that answers the following question: With a date of 8/3/08, what was the length of the victory margin? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_16689920_1 (victory_margin__in_lengths_ VARCHAR, date VARCHAR) | SELECT COUNT(victory_margin__in_lengths_) FROM table_16689920_1 WHERE date = "8/3/08" |
Write a SQL query that answers the following question: For the film with director listed as 1998, what was the gross in Singapore? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (singapore_gross VARCHAR, director VARCHAR) | SELECT singapore_gross FROM table_name_64 WHERE director = "1998" |
Write a SQL query that answers the following question: Show all distinct positions of matches. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE match_season (POSITION VARCHAR) | SELECT DISTINCT POSITION FROM match_season |
Write a SQL query that answers the following question: Name the total number of period for yvon le roux | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24565004_13 (period VARCHAR, name VARCHAR) | SELECT COUNT(period) FROM table_24565004_13 WHERE name = "Yvon Le Roux" |
Write a SQL query that answers the following question: What was the last appearance of actor/actress is pam ferris? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25831483_1 (last_appearance VARCHAR, actor_actress VARCHAR) | SELECT last_appearance FROM table_25831483_1 WHERE actor_actress = "Pam Ferris" |
Write a SQL query that answers the following question: What kind of report was for the game played on 29 November with Melbourne Tigers being the away team? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT report FROM table_name_89 WHERE date = "29 november" AND away_team = "melbourne tigers" |
Write a SQL query that answers the following question: What are the averages for games with 212 wickets taken? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2482547_5 (average VARCHAR, wickets_taken VARCHAR) | SELECT average FROM table_2482547_5 WHERE wickets_taken = 212 |
Write a SQL query that answers the following question: At which location did Rick Mears drive? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15736385_1 (location VARCHAR, driver VARCHAR) | SELECT location FROM table_15736385_1 WHERE driver = "Rick Mears" |
Write a SQL query that answers the following question: If the grand total is 5814, what is the total non qatar? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26214389_3 (total_non_qatar VARCHAR, grand_total VARCHAR) | SELECT total_non_qatar FROM table_26214389_3 WHERE grand_total = 5814 |
Write a SQL query that answers the following question: What is the date of the game where the NY Islanders are the home team? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_2 WHERE home = "ny islanders" |
Write a SQL query that answers the following question: Can you tell me the Opponent that has the Series of 4-2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (opponent VARCHAR, series VARCHAR) | SELECT opponent FROM table_name_91 WHERE series = "4-2" |
Write a SQL query that answers the following question: What is the Event when the opponent was wesslan evaristo de oliveira? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_79 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_79 WHERE opponent = "wesslan evaristo de oliveira" |
Write a SQL query that answers the following question: What was the Score on November 10, 2007? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_76 WHERE date = "november 10, 2007" |
Write a SQL query that answers the following question: what is the best supported club with a 25 Goal and a per game larger than 1,156? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR) | SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156 |
Write a SQL query that answers the following question: Where does Mount Chamberlin, located in Alaska, rank on the chart? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_37 (rank INTEGER, state VARCHAR, mountain_peak VARCHAR) | SELECT SUM(rank) FROM table_name_37 WHERE state = "alaska" AND mountain_peak = "mount chamberlin" |
Write a SQL query that answers the following question: What year did a short course have a time of 7:51.80? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR) | SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80" |
Write a SQL query that answers the following question: In which townlands is the civil parish Monkstown? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_30120619_1 (townland VARCHAR, civil_parish VARCHAR) | SELECT townland FROM table_30120619_1 WHERE civil_parish = "Monkstown" |
Write a SQL query that answers the following question: What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_65 (location VARCHAR, score VARCHAR) | SELECT MIN(1 AS st_prize__) AS $__ FROM table_name_65 WHERE location = "florida" AND score = "200 (-16)" |
Write a SQL query that answers the following question: What class before 1990 has points of 33? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (class VARCHAR, year VARCHAR, points VARCHAR) | SELECT class FROM table_name_66 WHERE year < 1990 AND points = 33 |
Write a SQL query that answers the following question: How many people wrote episode 9 in the season that was directed by Ernest Dickerson? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR) | SELECT COUNT(written_by) FROM table_29219286_1 WHERE directed_by = "Ernest Dickerson" AND no_in_season = 9 |
Write a SQL query that answers the following question: Name the most place for goals scored more than 28 and played less than 18 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (place INTEGER, goals_scored VARCHAR, played VARCHAR) | SELECT MAX(place) FROM table_name_23 WHERE goals_scored > 28 AND played < 18 |
Write a SQL query that answers the following question: How many episodes in the series were directed by Alan Taylor? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR) | SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor" |
Write a SQL query that answers the following question: Which Year(s) won has a To par of +8? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_65 (year_s__won VARCHAR, to_par VARCHAR) | SELECT year_s__won FROM table_name_65 WHERE to_par = "+8" |
Write a SQL query that answers the following question: Find the last names of the students in third grade that are not taught by COVIN JEROME. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR) | SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> "COVIN" AND T2.lastname <> "JEROME" |
Write a SQL query that answers the following question: What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_80 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR) | SELECT ihsaa_class FROM table_name_80 WHERE _number___county = "12 clinton" AND mascot = "hornets" |
Write a SQL query that answers the following question: What is the pick for West Virginia college? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (pick VARCHAR, college VARCHAR) | SELECT pick FROM table_name_91 WHERE college = "west virginia" |
Write a SQL query that answers the following question: Which Position has Draws smaller than 7 and a Played larger than 22? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (position INTEGER, draws VARCHAR, played VARCHAR) | SELECT AVG(position) FROM table_name_16 WHERE draws < 7 AND played > 22 |
Write a SQL query that answers the following question: Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_62 (main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR) | SELECT main_contestant FROM table_name_62 WHERE scores_by_each_individual_judge = 8 + 7 + 7 = 21 |
Write a SQL query that answers the following question: What torque does a 1905 cc capacity have? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_63 (torque VARCHAR, capacity VARCHAR) | SELECT torque FROM table_name_63 WHERE capacity = "1905 cc" |
Write a SQL query that answers the following question: I want the date for nihat kahveci | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR) | SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci" |
Write a SQL query that answers the following question: What is every value of period when eccentricity is 0.583085? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR) | SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085" |
Write a SQL query that answers the following question: What is the CFL Team with #48 as the pick number? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR) | SELECT cfl_team FROM table_name_98 WHERE pick__number = 48 |
Write a SQL query that answers the following question: Tell me the time/retired for Laps larger than 63 and has a grid of 20 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_97 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 20 |
Write a SQL query that answers the following question: Which Elevated has an Elector of matteo orsini rosso? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR) | SELECT elevated FROM table_name_23 WHERE elector = "matteo orsini rosso" |
Write a SQL query that answers the following question: What's the total number of points that the rank is less than 5 and has Tiago Splitter? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR) | SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 5 |
Write a SQL query that answers the following question: What is the result when the candidates are alexander smyth (dr) 100% | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2668336_24 (result VARCHAR, candidates VARCHAR) | SELECT result FROM table_2668336_24 WHERE candidates = "Alexander Smyth (DR) 100%" |
Write a SQL query that answers the following question: When did mika heinonen susanna dahlberg win mixed doubles? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_55 (year INTEGER, mixed_doubles VARCHAR) | SELECT AVG(year) FROM table_name_55 WHERE mixed_doubles = "mika heinonen susanna dahlberg" |
Write a SQL query that answers the following question: List the locations that are shared by more than two wrestlers. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE wrestler (LOCATION VARCHAR) | SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 |
Write a SQL query that answers the following question: List all people names in the order of their date of birth from old to young. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE people (name VARCHAR, date_of_birth VARCHAR) | SELECT name FROM people ORDER BY date_of_birth |
Write a SQL query that answers the following question: Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR) | SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing" |
Write a SQL query that answers the following question: what is x when faisaly is 0-0? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26173063_2 (× VARCHAR, faisaly VARCHAR) | SELECT × FROM table_26173063_2 WHERE faisaly = "0-0" |
Write a SQL query that answers the following question: What week had an Attendance smaller than 21,097? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (week VARCHAR, attendance INTEGER) | SELECT COUNT(week) FROM table_name_46 WHERE attendance < 21 OFFSET 097 |
Write a SQL query that answers the following question: who is the points classification in stage 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (points_classification VARCHAR, stage VARCHAR) | SELECT points_classification FROM table_name_64 WHERE stage = "1" |
Write a SQL query that answers the following question: How many played where the points were 80? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12807904_5 (played VARCHAR, points VARCHAR) | SELECT played FROM table_12807904_5 WHERE points = "80" |
Write a SQL query that answers the following question: What is the event when the method was tko (punches), and the record was 7-1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_60 (event VARCHAR, method VARCHAR, record VARCHAR) | SELECT event FROM table_name_60 WHERE method = "tko (punches)" AND record = "7-1" |
Write a SQL query that answers the following question: What is thea year the road closed April 13? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12791809_1 (year INTEGER, road_closed VARCHAR) | SELECT MAX(year) FROM table_12791809_1 WHERE road_closed = "April 13" |
Write a SQL query that answers the following question: What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_96 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR, octal VARCHAR) | SELECT SUM(glyph) FROM table_name_96 WHERE binary < 111001 AND octal < 65 AND hexadecimal < 30 |
Write a SQL query that answers the following question: What is the average week on November 7, 1976 with an attendance less than 46,735? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_94 (week INTEGER, date VARCHAR, attendance VARCHAR) | SELECT AVG(week) FROM table_name_94 WHERE date = "november 7, 1976" AND attendance < 46 OFFSET 735 |
Write a SQL query that answers the following question: What is the team in 1989? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR) | SELECT team FROM table_name_50 WHERE year = "1989" |
Write a SQL query that answers the following question: Record of 18–15–6 belongs to what lowest attendance? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_32 (attendance INTEGER, record VARCHAR) | SELECT MIN(attendance) FROM table_name_32 WHERE record = "18–15–6" |
Write a SQL query that answers the following question: What's the island with a summit of Haleakalā? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR) | SELECT island FROM table_name_74 WHERE summit = "haleakalā" |