instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which Award is the winner for Outstanding Revival of a Musical given?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_57 WHERE category = "outstanding revival of a musical"
Write a SQL query that answers the following question: Who is the home team in the game where South Melbourne was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: I want the result for week larger than 10 for opponent of new england patriots
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_90 WHERE week > 10 AND opponent = "new england patriots"
Write a SQL query that answers the following question: I want the game site for week of 11
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_17 WHERE week = 11
Write a SQL query that answers the following question: What is the average number of laps for mika salo's arrows car with a grid over 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT AVG(laps) FROM table_name_6 WHERE constructor = "arrows" AND driver = "mika salo" AND grid > 13
Write a SQL query that answers the following question: Who drove the car with a grid of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_38 WHERE grid = 7
Write a SQL query that answers the following question: Which Report is Dated 9 March?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_72 WHERE date = "9 march"
Write a SQL query that answers the following question: When Hamilton Academical is the Opponent, what is the total Attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"
Write a SQL query that answers the following question: How many in attendance with a loss of volquez (1–4)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_57 WHERE loss = "volquez (1–4)"
Write a SQL query that answers the following question: What record has a Score of 9–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_15 WHERE score = "9–6"
Write a SQL query that answers the following question: What is the average number in attendance on September 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
Write a SQL query that answers the following question: What is the sum of people in attendance on September 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8"
Write a SQL query that answers the following question: What was Head Coach Jim Morris's best finish?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (cws_best_finish VARCHAR, head_coach VARCHAR)
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
Write a SQL query that answers the following question: What is the record when the visiting team was the montreal canadiens?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens"
Write a SQL query that answers the following question: What nation has 187.84 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (nation VARCHAR, points VARCHAR)
SELECT nation FROM table_name_83 WHERE points = 187.84
Write a SQL query that answers the following question: What is the low point total for teams with 81 places?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (points INTEGER, places VARCHAR)
SELECT MIN(points) FROM table_name_90 WHERE places = "81"
Write a SQL query that answers the following question: What is the station number of the station at Dogsthorpe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (station_number VARCHAR, location VARCHAR)
SELECT station_number FROM table_name_40 WHERE location = "dogsthorpe"
Write a SQL query that answers the following question: What is the type of the station with a 1 wrl appliance in Linton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (type VARCHAR, appliances VARCHAR, location VARCHAR)
SELECT type FROM table_name_92 WHERE appliances = "1 wrl" AND location = "linton"
Write a SQL query that answers the following question: What is the appliance at the station in St Neots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (appliances VARCHAR, location VARCHAR)
SELECT appliances FROM table_name_69 WHERE location = "st neots"
Write a SQL query that answers the following question: What is the registration of the station at Cambridge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
Write a SQL query that answers the following question: What is the location of the station at Huntingdonshire with a station number of c17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (location VARCHAR, district VARCHAR, station_number VARCHAR)
SELECT location FROM table_name_85 WHERE district = "huntingdonshire" AND station_number = "c17"
Write a SQL query that answers the following question: What is the registration of the station with a retained type and a station number of c03?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (registrations VARCHAR, type VARCHAR, station_number VARCHAR)
SELECT registrations FROM table_name_27 WHERE type = "retained" AND station_number = "c03"
Write a SQL query that answers the following question: Name the nationality of the player with round more than 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER)
SELECT nationality FROM table_name_46 WHERE round > 4
Write a SQL query that answers the following question: In what Year was the Rank 14.0 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (year INTEGER, rank VARCHAR)
SELECT SUM(year) FROM table_name_42 WHERE rank = "14.0 14"
Write a SQL query that answers the following question: After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (rank VARCHAR, height_ft__m_ VARCHAR, year VARCHAR, floors VARCHAR)
SELECT rank FROM table_name_90 WHERE year > 1971 AND floors < 35 AND height_ft__m_ = "19.0 477 (145)"
Write a SQL query that answers the following question: What Year has a Rank of 12.0 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (year INTEGER, rank VARCHAR)
SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12"
Write a SQL query that answers the following question: What did the away team score at VFL Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"
Write a SQL query that answers the following question: How many people watched the game at Lake Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
Write a SQL query that answers the following question: What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (comp INTEGER, player VARCHAR, rating VARCHAR)
SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2
Write a SQL query that answers the following question: For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (att INTEGER, yards VARCHAR, comp VARCHAR)
SELECT MAX(att) FROM table_name_9 WHERE yards < 138 AND comp > 0
Write a SQL query that answers the following question: How many laps for grid of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_49 WHERE grid = 9
Write a SQL query that answers the following question: What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft"
Write a SQL query that answers the following question: What is the Set 1 with a Score with 3–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (set_1 VARCHAR, score VARCHAR)
SELECT set_1 FROM table_name_96 WHERE score = "3–2"
Write a SQL query that answers the following question: What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (set_1 VARCHAR, set_2 VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_6 WHERE set_2 = "15–5" AND set_3 = "15–3"
Write a SQL query that answers the following question: What is the Date with a Set 1 with 15–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_79 WHERE set_1 = "15–1"
Write a SQL query that answers the following question: What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (set_3 VARCHAR, date VARCHAR, set_2 VARCHAR)
SELECT set_3 FROM table_name_33 WHERE date = "04 oct" AND set_2 = "15–5"
Write a SQL query that answers the following question: What is the Set 3 with a Set 2 with 15–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (set_3 VARCHAR, set_2 VARCHAR)
SELECT set_3 FROM table_name_58 WHERE set_2 = "15–6"
Write a SQL query that answers the following question: What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (set_2 VARCHAR, total VARCHAR, set_3 VARCHAR)
SELECT set_2 FROM table_name_6 WHERE total = "45–12" AND set_3 = "15–2"
Write a SQL query that answers the following question: What was the grid associated with under 26 laps and a Time/Retired of +6.077?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_5 WHERE time_retired = "+6.077" AND laps < 26
Write a SQL query that answers the following question: On 5 May 2011, what was the lead percentage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (lead VARCHAR, date_s__conducted VARCHAR)
SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011"
Write a SQL query that answers the following question: On what date was the lead 8.6%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date_s__conducted VARCHAR, lead VARCHAR)
SELECT date_s__conducted FROM table_name_25 WHERE lead = "8.6%"
Write a SQL query that answers the following question: what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (lifespan VARCHAR, imperial VARCHAR, nationality VARCHAR)
SELECT lifespan FROM table_name_56 WHERE imperial = "7ft 8 in" AND nationality = "fiji"
Write a SQL query that answers the following question: what is the nationality with the metric height of 2.36m named sun ming-ming?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (nationality VARCHAR, metric VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_21 WHERE metric = "2.36m" AND name = "sun ming-ming"
Write a SQL query that answers the following question: What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT SUM(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "teo fabi" AND laps < 39
Write a SQL query that answers the following question: What is the average grid for johnny dumfries with less than 8 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8
Write a SQL query that answers the following question: What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_44 WHERE constructor = "minardi - motori moderni" AND grid < 18
Write a SQL query that answers the following question: What constructor has a 12 grid?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_61 WHERE grid = 12
Write a SQL query that answers the following question: What is the average where the swimsuit is larger than 9.437?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (average INTEGER, swimsuit INTEGER)
SELECT MAX(average) FROM table_name_24 WHERE swimsuit > 9.437
Write a SQL query that answers the following question: What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (evening_gown INTEGER, interview VARCHAR, preliminaries VARCHAR)
SELECT SUM(evening_gown) FROM table_name_84 WHERE interview = 9.22 AND preliminaries > 9.057
Write a SQL query that answers the following question: What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163
Write a SQL query that answers the following question: What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (preliminaries INTEGER, interview VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143
Write a SQL query that answers the following question: For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR)
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
Write a SQL query that answers the following question: How many 5K wins did Emily Chebet, who had more than 2 total, have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (runner VARCHAR, total VARCHAR)
SELECT SUM(5 AS k_wins) FROM table_name_14 WHERE runner = "emily chebet" AND total > 2
Write a SQL query that answers the following question: How many 5K wins did Emily Chebet, who had more than 2 total, have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (runner VARCHAR, total VARCHAR)
SELECT COUNT(5 AS k_wins) FROM table_name_80 WHERE runner = "emily chebet" AND total > 2
Write a SQL query that answers the following question: What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (peak_lessons_taught INTEGER, evaluation_average__before_april_2009_ VARCHAR)
SELECT MAX(peak_lessons_taught) FROM table_name_95 WHERE evaluation_average__before_april_2009_ = "4.4"
Write a SQL query that answers the following question: What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%"
Write a SQL query that answers the following question: What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (evaluation_average__before_april_2009_ VARCHAR, _percentage_of_negative_evaluations VARCHAR, evaluation_average__from_april_2009_ VARCHAR)
SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = "0.8%" AND evaluation_average__from_april_2009_ = "4.2"
Write a SQL query that answers the following question: What is moorabbin oval's away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_11 WHERE venue = "moorabbin oval"
Write a SQL query that answers the following question: What is Karl Wendlinger's total grid #?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_57 WHERE driver = "karl wendlinger"
Write a SQL query that answers the following question: Which Home team score had a Home team of Fitzroy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_13 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: Who was replaced by Lieve Wierinck?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (name VARCHAR, replacement VARCHAR)
SELECT name FROM table_name_18 WHERE replacement = "lieve wierinck"
Write a SQL query that answers the following question: Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (gross_tonnage INTEGER, ship VARCHAR, material VARCHAR, date_commissioned VARCHAR)
SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk"
Write a SQL query that answers the following question: Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (gross_tonnage INTEGER, ship VARCHAR, date_commissioned VARCHAR)
SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842
Write a SQL query that answers the following question: Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (date_commissioned INTEGER, gross_tonnage VARCHAR, material VARCHAR, ship VARCHAR)
SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = "iron" AND ship = "rmsrhone" AND gross_tonnage < 2 OFFSET 738
Write a SQL query that answers the following question: What Constructor has a +1.027 Time/Retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027"
Write a SQL query that answers the following question: What Constructor has 56 Laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (constructor VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_13 WHERE laps = 56
Write a SQL query that answers the following question: What Driver has 28 Laps and a Grid greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28
Write a SQL query that answers the following question: What is the highest Laps with a Time/Retired Wheel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (laps INTEGER, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_80 WHERE time_retired = "wheel"
Write a SQL query that answers the following question: What Driver has a +1.027 Time/Retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_86 WHERE time_retired = "+1.027"
Write a SQL query that answers the following question: What game has a score of 44-20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_78 WHERE score = "44-20"
Write a SQL query that answers the following question: What date was a game played at Headingley Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_67 WHERE venue = "headingley stadium"
Write a SQL query that answers the following question: What competition was played at Shay Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_84 WHERE venue = "shay stadium"
Write a SQL query that answers the following question: Which show had a part 3 before 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (show VARCHAR, year VARCHAR, episode_title VARCHAR)
SELECT show FROM table_name_45 WHERE year < 2011 AND episode_title = "part 3"
Write a SQL query that answers the following question: What are the male Bounder books?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (books VARCHAR, gender VARCHAR, animal_name VARCHAR)
SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder"
Write a SQL query that answers the following question: How many people attended on April 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_75 WHERE date = "april 12"
Write a SQL query that answers the following question: On what date were 5 built with 4-4-2t wheels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR)
SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t"
Write a SQL query that answers the following question: On what date was the number of locomotives 421-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, loco_nos VARCHAR)
SELECT date FROM table_name_70 WHERE loco_nos = "421-6"
Write a SQL query that answers the following question: How many were built with a locomotive number of 11-20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (no_built VARCHAR, loco_nos VARCHAR)
SELECT no_built FROM table_name_17 WHERE loco_nos = "11-20"
Write a SQL query that answers the following question: On what date were more than 5 built with 4-4-2 wheels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, wheels VARCHAR, no_built VARCHAR)
SELECT date FROM table_name_38 WHERE wheels = "4-4-2" AND no_built > 5
Write a SQL query that answers the following question: On what date were less than 10 built with a locomotive number of 31-35?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, no_built VARCHAR, loco_nos VARCHAR)
SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = "31-35"
Write a SQL query that answers the following question: How many spectators watched when the away team was Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood"
Write a SQL query that answers the following question: What did Essendon score when they were the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon"
Write a SQL query that answers the following question: Who was the home team at Brunswick Street Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval"
Write a SQL query that answers the following question: What was South Melbourne's away team score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: Who was the away team at Brunswick Street Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
Write a SQL query that answers the following question: Tell me the lowest height for class of hewitt and prom less than 148
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR)
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148
Write a SQL query that answers the following question: Tell me the total number of prom for height less than 615
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER)
SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615
Write a SQL query that answers the following question: I want to know the peak which is prom less than 147 and height less than 619
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR)
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619
Write a SQL query that answers the following question: Tell me the peak for prom being less than 147
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (peak VARCHAR, prom__m_ INTEGER)
SELECT peak FROM table_name_26 WHERE prom__m_ < 147
Write a SQL query that answers the following question: Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR)
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615
Write a SQL query that answers the following question: Name the peak for height more than 619 and class of hewitt with prom being 148
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR, class VARCHAR)
SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = "hewitt" AND prom__m_ = 148
Write a SQL query that answers the following question: What is the percentage democrats with 2/4 democrat/republican?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR)
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/4"
Write a SQL query that answers the following question: What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5"
Write a SQL query that answers the following question: What is the percent of republicans with 7/6 democrat/republican?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (percentage_republicans VARCHAR, democratic__republican VARCHAR)
SELECT percentage_republicans FROM table_name_62 WHERE democratic__republican = "7/6"
Write a SQL query that answers the following question: What is the democratic seat plurality with 29% democrat?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR)
SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = "29%"
Write a SQL query that answers the following question: What is the democratic seat plurality with partisan order of New Hampshire?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire"
Write a SQL query that answers the following question: What is the score of the game with Pacers as the Visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_32 WHERE visitor = "pacers"
Write a SQL query that answers the following question: Who was Home on December 5, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_11 WHERE date = "december 5, 2007"
Write a SQL query that answers the following question: What is the Japanese orthography for the abbreviation of ndmc?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (japanese_orthography VARCHAR, abbreviation VARCHAR)
SELECT japanese_orthography FROM table_name_39 WHERE abbreviation = "ndmc"
Write a SQL query that answers the following question: What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(ι˜²θ‘›ε€§)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR)
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(ι˜²θ‘›ε€§)"