instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (against INTEGER, played VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT AVG(against) FROM table_name_66 WHERE drawn < 7 AND points > 22 AND played = 19
Write a SQL query that answers the following question: When has a TV Time of fox 12:00 pm cdt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (date VARCHAR, tv_time VARCHAR)
SELECT date FROM table_name_75 WHERE tv_time = "fox 12:00 pm cdt"
Write a SQL query that answers the following question: When has a Week of 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_73 WHERE week = 8
Write a SQL query that answers the following question: Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills"
Write a SQL query that answers the following question: What kind of TV Time that has a Result of w 24–10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (tv_time VARCHAR, result VARCHAR)
SELECT tv_time FROM table_name_72 WHERE result = "w 24–10"
Write a SQL query that answers the following question: What is the name of the conference that K. C. Jones was a head coach in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (conf VARCHAR, head_coach VARCHAR)
SELECT conf FROM table_name_78 WHERE head_coach = "k. c. jones"
Write a SQL query that answers the following question: Who had the highest assists of the game on March 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_50 WHERE date = "march 5"
Write a SQL query that answers the following question: What is the least amount of appearances by new zealand when they scored 4 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (appearances INTEGER, goals VARCHAR, nationality VARCHAR)
SELECT MIN(appearances) FROM table_name_85 WHERE goals = 4 AND nationality = "new zealand"
Write a SQL query that answers the following question: how many appearances did batram suri category:articles with hcards have scoring less than 2 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (appearances VARCHAR, name VARCHAR, goals VARCHAR)
SELECT COUNT(appearances) FROM table_name_41 WHERE name = "batram suri category:articles with hcards" AND goals < 2
Write a SQL query that answers the following question: What province has a v valparaíso region and an area of 927.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (province VARCHAR, region VARCHAR, area VARCHAR)
SELECT province FROM table_name_31 WHERE region = "v valparaíso" AND area = 927.2
Write a SQL query that answers the following question: What is the average area with valparaíso as the capital?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (area INTEGER, capital VARCHAR)
SELECT AVG(area) FROM table_name_34 WHERE capital = "valparaíso"
Write a SQL query that answers the following question: WHich Category in White has a Amerindian of 4,87%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (white VARCHAR, amerindian VARCHAR)
SELECT white FROM table_name_96 WHERE amerindian = "4,87%"
Write a SQL query that answers the following question: WHich Category in White has a Black of 38,05%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (white VARCHAR, black VARCHAR)
SELECT white FROM table_name_35 WHERE black = "38,05%"
Write a SQL query that answers the following question: Which Category in Brown has a Frequency of 0.08%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (brown VARCHAR, frequency VARCHAR)
SELECT brown FROM table_name_84 WHERE frequency = "0.08%"
Write a SQL query that answers the following question: Which Category in Black has a Brown of 6,54%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (black VARCHAR, brown VARCHAR)
SELECT black FROM table_name_61 WHERE brown = "6,54%"
Write a SQL query that answers the following question: What is the Capacity in use with an Annual change that is 21.8%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR)
SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%"
Write a SQL query that answers the following question: How many Tries has Points for smaller than 137, and Tries against larger than 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (tries_for VARCHAR, points_for VARCHAR, tries_against VARCHAR)
SELECT COUNT(tries_for) FROM table_name_81 WHERE points_for < 137 AND tries_against > 12
Write a SQL query that answers the following question: WHich Team that has Points against of 43?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (team VARCHAR, points_against VARCHAR)
SELECT team FROM table_name_17 WHERE points_against = 43
Write a SQL query that answers the following question: WHich Tries has a Team of pau and Points against larger than 103?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)
SELECT MIN(tries_for) FROM table_name_48 WHERE team = "pau" AND points_against > 103
Write a SQL query that answers the following question: How many Points against has Tries for smaller than 14, and a Team of llanelli?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (points_against INTEGER, tries_for VARCHAR, team VARCHAR)
SELECT AVG(points_against) FROM table_name_13 WHERE tries_for < 14 AND team = "llanelli"
Write a SQL query that answers the following question: How many Tries against has a Try diff of –17 and Points for smaller than 80?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (tries_against VARCHAR, try_diff VARCHAR, points_for VARCHAR)
SELECT COUNT(tries_against) FROM table_name_30 WHERE try_diff = "–17" AND points_for < 80
Write a SQL query that answers the following question: Which player was the forward?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_7 WHERE position = "forward"
Write a SQL query that answers the following question: Which years in Orlando are featured with the center position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (years_in_orlando VARCHAR, position VARCHAR)
SELECT years_in_orlando FROM table_name_11 WHERE position = "center"
Write a SQL query that answers the following question: Which position was in Orlando in 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (position VARCHAR, years_in_orlando VARCHAR)
SELECT position FROM table_name_15 WHERE years_in_orlando = "2000"
Write a SQL query that answers the following question: What is the Name with Goals that are 135?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (name VARCHAR, goals VARCHAR)
SELECT name FROM table_name_61 WHERE goals = 135
Write a SQL query that answers the following question: Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner"
Write a SQL query that answers the following question: Which Socialist candidate ran against American Labor candidate Caroline O'Day?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (socialist_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT socialist_ticket FROM table_name_65 WHERE american_labor_ticket = "caroline o'day"
Write a SQL query that answers the following question: Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (democratic_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT democratic_ticket FROM table_name_71 WHERE socialist_ticket = "edna mitchell blue"
Write a SQL query that answers the following question: Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn"
Write a SQL query that answers the following question: Which Republican ran against the American Labor candidate Matthew J. Merritt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT republican_ticket FROM table_name_5 WHERE american_labor_ticket = "matthew j. merritt"
Write a SQL query that answers the following question: Which American Labor candidate ran against Republican Thomas E. Dewey?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (american_labor_ticket VARCHAR, republican_ticket VARCHAR)
SELECT american_labor_ticket FROM table_name_91 WHERE republican_ticket = "thomas e. dewey"
Write a SQL query that answers the following question: Who is the Opponent in the final after 1983 with an Outcome of runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_48 WHERE outcome = "runner-up" AND date > 1983
Write a SQL query that answers the following question: What Opponent in the final had a match with a Score in the final of 7–5, 6–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 6–2"
Write a SQL query that answers the following question: What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT championship FROM table_name_3 WHERE surface = "clay" AND opponent_in_the_final = "vitas gerulaitis"
Write a SQL query that answers the following question: What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR)
SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.1
Write a SQL query that answers the following question: How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR)
SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439
Write a SQL query that answers the following question: What is the team when alvin williams (6) has the high assists?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (team VARCHAR, high_assists VARCHAR)
SELECT team FROM table_name_29 WHERE high_assists = "alvin williams (6)"
Write a SQL query that answers the following question: What is the Record for a game less than 3 and the score was l 91–96 (ot)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (record VARCHAR, game VARCHAR, score VARCHAR)
SELECT record FROM table_name_19 WHERE game < 3 AND score = "l 91–96 (ot)"
Write a SQL query that answers the following question: What is the Date when the high points went to Dell Curry (17)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (date VARCHAR, high_points VARCHAR)
SELECT date FROM table_name_84 WHERE high_points = "dell curry (17)"
Write a SQL query that answers the following question: What is the Team when antonio davis (8) had the high rebounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (team VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_53 WHERE high_rebounds = "antonio davis (8)"
Write a SQL query that answers the following question: What is the Tournament with a Date that is apr 16, 1967?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_56 WHERE date = "apr 16, 1967"
Write a SQL query that answers the following question: What is the Date with a Runner(s)-up that is jerry steelsmith?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_69 WHERE runner_s__up = "jerry steelsmith"
Write a SQL query that answers the following question: What kind of Obama that has a Source of rasmussen reports?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (obama VARCHAR, source VARCHAR)
SELECT obama FROM table_name_28 WHERE source = "rasmussen reports"
Write a SQL query that answers the following question: Which Source has a Undecided of 2%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (source VARCHAR, undecided VARCHAR)
SELECT source FROM table_name_46 WHERE undecided = "2%"
Write a SQL query that answers the following question: What kind of Obama has a Undecided of 1%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (obama VARCHAR, undecided VARCHAR)
SELECT obama FROM table_name_87 WHERE undecided = "1%"
Write a SQL query that answers the following question: When has a Source of surveyusa and a Obama of 54%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (date VARCHAR, source VARCHAR, obama VARCHAR)
SELECT date FROM table_name_8 WHERE source = "surveyusa" AND obama = "54%"
Write a SQL query that answers the following question: When has a Source of rasmussen reports?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (date VARCHAR, source VARCHAR)
SELECT date FROM table_name_39 WHERE source = "rasmussen reports"
Write a SQL query that answers the following question: Which Source has a Clinton of 39% and a Undecided of 7%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (source VARCHAR, clinton VARCHAR, undecided VARCHAR)
SELECT source FROM table_name_94 WHERE clinton = "39%" AND undecided = "7%"
Write a SQL query that answers the following question: What is the Date of Birth with a Block that is larger than 342?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date_of_birth VARCHAR, block INTEGER)
SELECT date_of_birth FROM table_name_18 WHERE block > 342
Write a SQL query that answers the following question: What is the number of positions that have 2012 ratings of 0.92?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (position VARCHAR)
SELECT COUNT(position) FROM table_name_21 WHERE 2012 = "0.92"
Write a SQL query that answers the following question: What is the owner of the channel that has a 2012 rating of 5.42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (owner VARCHAR)
SELECT owner FROM table_name_96 WHERE 2012 = "5.42"
Write a SQL query that answers the following question: What is the 2007 rating of the channel with a position of 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (position VARCHAR)
SELECT 2007 FROM table_name_28 WHERE position = 6
Write a SQL query that answers the following question: What is the channel with a 2011 rating of 8.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (channel VARCHAR)
SELECT channel FROM table_name_64 WHERE 2011 = "8.5"
Write a SQL query that answers the following question: What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR)
SELECT astc_member FROM table_name_39 WHERE state = "arkansas" AND aam_member = "no" AND aam_accredited = "yes"
Write a SQL query that answers the following question: What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (city VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR)
SELECT city FROM table_name_61 WHERE state = "florida" AND aam_member = "no" AND aam_accredited = "no"
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 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 State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (state VARCHAR, city VARCHAR, aam_accredited VARCHAR, astc_member VARCHAR)
SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa"
Write a SQL query that answers the following question: What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR, aam_accredited VARCHAR)
SELECT city FROM table_name_30 WHERE state = "california" AND aam_accredited = "no" AND astc_member = "yes" AND aam_member = "no"
Write a SQL query that answers the following question: What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR)
SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "sacramento"
Write a SQL query that answers the following question: Who were the runners-up when the individual winner was Tiger Woods?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (runners_up VARCHAR, individual VARCHAR)
SELECT runners_up FROM table_name_17 WHERE individual = "tiger woods"
Write a SQL query that answers the following question: How many years was the individual winner from the United States was Tiger Woods?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (year VARCHAR, country VARCHAR, individual VARCHAR)
SELECT COUNT(year) FROM table_name_75 WHERE country = "united states" AND individual = "tiger woods"
Write a SQL query that answers the following question: What is the earliest year that the tournament was played in Cape Town, South Africa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (year INTEGER, location VARCHAR)
SELECT MIN(year) FROM table_name_71 WHERE location = "cape town, south africa"
Write a SQL query that answers the following question: Who is the Driver, when the Date is October 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (driver VARCHAR, date VARCHAR)
SELECT driver FROM table_name_98 WHERE date = "october 6"
Write a SQL query that answers the following question: What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (season VARCHAR, engine VARCHAR, team VARCHAR)
SELECT COUNT(season) FROM table_name_85 WHERE engine = "cosworth" AND team = "kraco racing"
Write a SQL query that answers the following question: Who is the Driver, when the Engine is Chevrolet, and when the Date is October 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (driver VARCHAR, engine VARCHAR, date VARCHAR)
SELECT driver FROM table_name_90 WHERE engine = "chevrolet" AND date = "october 3"
Write a SQL query that answers the following question: What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (season INTEGER, team VARCHAR, date VARCHAR)
SELECT SUM(season) FROM table_name_10 WHERE team = "penske racing" AND date = "october 3"
Write a SQL query that answers the following question: What was the Year to Open for the Dandeung Bridge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (year_to_open VARCHAR, name VARCHAR)
SELECT COUNT(year_to_open) FROM table_name_51 WHERE name = "dandeung bridge"
Write a SQL query that answers the following question: What is the Main span of the Qincaobei Bridge
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (main_span_feet VARCHAR, name VARCHAR)
SELECT main_span_feet FROM table_name_64 WHERE name = "qincaobei bridge"
Write a SQL query that answers the following question: What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (main_span_metres VARCHAR, main_span_feet VARCHAR, year_to_open VARCHAR, country VARCHAR)
SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585"
Write a SQL query that answers the following question: Which republican ticket has stanley h. fuld as the Democratic ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT republican_ticket FROM table_name_25 WHERE democratic_ticket = "stanley h. fuld"
Write a SQL query that answers the following question: What is the liberal ticket that has judith white as the socialist workers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (liberal_ticket VARCHAR, socialist_workers_ticket VARCHAR)
SELECT liberal_ticket FROM table_name_73 WHERE socialist_workers_ticket = "judith white"
Write a SQL query that answers the following question: What socialist workers ticket has malcolm wilson as the Republican ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR)
SELECT socialist_workers_ticket FROM table_name_71 WHERE republican_ticket = "malcolm wilson"
Write a SQL query that answers the following question: Which office has kieran o'doherty as the conservative ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (office VARCHAR, conservative_ticket VARCHAR)
SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty"
Write a SQL query that answers the following question: What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (office VARCHAR, socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT office FROM table_name_8 WHERE socialist_labor_ticket = "(none)" AND liberal_ticket = "stanley h. fuld"
Write a SQL query that answers the following question: If the call sign is w291ch what's the ERP W corresponding to that sign?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (erp_w VARCHAR, call_sign VARCHAR)
SELECT erp_w FROM table_name_38 WHERE call_sign = "w291ch"
Write a SQL query that answers the following question: For the call sign w242at what's the city the license plate is registered to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_78 WHERE call_sign = "w242at"
Write a SQL query that answers the following question: What's the Class for the city the license plate was issued in great barrington, massachusetts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (class VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_16 WHERE city_of_license = "great barrington, massachusetts"
Write a SQL query that answers the following question: How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 3
Write a SQL query that answers the following question: How many France bronze have a gold of more than 1 and a rank of 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT SUM(bronze) FROM table_name_79 WHERE gold > 1 AND nation = "france" AND rank < 1
Write a SQL query that answers the following question: How many gold have a silver of 1 and a bronze of 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_12 WHERE silver = 1 AND bronze < 1
Write a SQL query that answers the following question: What is the Aircraft when Kabul was the location, unknown fatalities, and the tail number was ya-ban?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (aircraft VARCHAR, tail_number VARCHAR, location VARCHAR, fatalities VARCHAR)
SELECT aircraft FROM table_name_3 WHERE location = "kabul" AND fatalities = "unknown" AND tail_number = "ya-ban"
Write a SQL query that answers the following question: What is the Fatalities when the tail number was unknown and in Kabul>
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR)
SELECT fatalities FROM table_name_53 WHERE tail_number = "unknown" AND location = "kabul"
Write a SQL query that answers the following question: What is the location for the an-12b aircraft?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (location VARCHAR, aircraft VARCHAR)
SELECT location FROM table_name_50 WHERE aircraft = "an-12b"
Write a SQL query that answers the following question: What location had 25/25 fatalities?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (location VARCHAR, fatalities VARCHAR)
SELECT location FROM table_name_15 WHERE fatalities = "25/25"
Write a SQL query that answers the following question: What tail number was on the an-26, with 25/25 fatalities?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (tail_number VARCHAR, aircraft VARCHAR, fatalities VARCHAR)
SELECT tail_number FROM table_name_82 WHERE aircraft = "an-26" AND fatalities = "25/25"
Write a SQL query that answers the following question: What type of aircraft was the plane with a tail number of ya-bao?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (aircraft VARCHAR, tail_number VARCHAR)
SELECT aircraft FROM table_name_75 WHERE tail_number = "ya-bao"
Write a SQL query that answers the following question: What is the total number of Points from a Match that is larger than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (points VARCHAR, match INTEGER)
SELECT COUNT(points) FROM table_name_38 WHERE match > 18
Write a SQL query that answers the following question: In what Season was the Series Formula Renault 3.5 series with less than 7 Races?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (season INTEGER, series VARCHAR, races VARCHAR)
SELECT SUM(season) FROM table_name_74 WHERE series = "formula renault 3.5 series" AND races < 7
Write a SQL query that answers the following question: What was the Series in 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (series VARCHAR, season VARCHAR)
SELECT series FROM table_name_67 WHERE season = 2009
Write a SQL query that answers the following question: How many Wins in the Year with more than 16 Races?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (wins VARCHAR, races INTEGER)
SELECT wins FROM table_name_7 WHERE races > 16
Write a SQL query that answers the following question: In what Season were then less than 3 Races with less than 1 Win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (season INTEGER, races VARCHAR, wins VARCHAR)
SELECT AVG(season) FROM table_name_51 WHERE races < 3 AND wins < 1
Write a SQL query that answers the following question: Which 1st leg has a Team #1 of ummc ekaterinburg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (team__number1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_33 WHERE team__number1 = "ummc ekaterinburg"
Write a SQL query that answers the following question: Which Team #2 has a Team #1 of gambrinus sika brno?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_name_70 WHERE team__number1 = "gambrinus sika brno"
Write a SQL query that answers the following question: What is the Goal number in Råsunda, Stockholm with a Result of 2–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (goal INTEGER, result VARCHAR, venue VARCHAR)
SELECT AVG(goal) FROM table_name_80 WHERE result = "2–2" AND venue = "råsunda, stockholm"
Write a SQL query that answers the following question: What is the Result of Goal number 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_21 WHERE goal = 3
Write a SQL query that answers the following question: On what day was a game played at Reese Smith Field, with a score of 4-3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR, site_stadium VARCHAR)
SELECT date FROM table_name_14 WHERE score = "4-3" AND site_stadium = "reese smith field"
Write a SQL query that answers the following question: What was the score for the game played on May 10 at Alex Box Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (score VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE site_stadium = "alex box stadium" AND date = "may 10"
Write a SQL query that answers the following question: What was the score for the game played at Sarge Frye Field?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score VARCHAR, site_stadium VARCHAR)
SELECT score FROM table_name_15 WHERE site_stadium = "sarge frye field"
Write a SQL query that answers the following question: On what date was a game played, which left the team with a record of 5-7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_16 WHERE record = "5-7"
Write a SQL query that answers the following question: What was the score of the game played at Harmon Stadium on February 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (score VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT score FROM table_name_38 WHERE site_stadium = "harmon stadium" AND date = "february 24"