instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the round or race of the winning driver Charles Hollings and what was his pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (round___race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings"
Write a SQL query that answers the following question: What was the earliest year in which long jump was performed in the world indoor Championships in 5th position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (year INTEGER, position VARCHAR, performance VARCHAR, competition VARCHAR)
SELECT MIN(year) FROM table_name_69 WHERE performance = "long jump" AND competition = "world indoor championships" AND position = "5th"
Write a SQL query that answers the following question: What was the latest year in which she took 4th position in Budapest, Hungary?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (year INTEGER, position VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_12 WHERE position = "4th" AND venue = "budapest, hungary"
Write a SQL query that answers the following question: Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (name VARCHAR, mission VARCHAR, age_at_first_step VARCHAR)
SELECT name FROM table_name_20 WHERE mission = "apollo 16" AND age_at_first_step = "36y 6m 18d"
Write a SQL query that answers the following question: David Scott went on which mission?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR)
SELECT mission FROM table_name_8 WHERE name = "david scott"
Write a SQL query that answers the following question: The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (service VARCHAR, age_at_first_step VARCHAR)
SELECT service FROM table_name_65 WHERE age_at_first_step = "37y 8m 4d"
Write a SQL query that answers the following question: Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (lunar_eva_dates VARCHAR, mission VARCHAR, name VARCHAR)
SELECT lunar_eva_dates FROM table_name_27 WHERE mission = "apollo 12" AND name = "pete conrad"
Write a SQL query that answers the following question: The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR)
SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d"
Write a SQL query that answers the following question: Which class has a year prior to 2011 and audi r15 tdi as the chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT class FROM table_name_72 WHERE year < 2011 AND chassis = "audi r15 tdi"
Write a SQL query that answers the following question: Which engine has a year later than 2006 and 60 as the points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (engine VARCHAR, year VARCHAR, points VARCHAR)
SELECT engine FROM table_name_51 WHERE year > 2006 AND points = "60"
Write a SQL query that answers the following question: How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (year VARCHAR, chassis VARCHAR, engine VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_name_10 WHERE engine = "audi 3.6l turbo v8" AND rank = "1st" AND chassis = "audi r8r"
Write a SQL query that answers the following question: Which entrant has 25th as the rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (entrant VARCHAR, rank VARCHAR)
SELECT entrant FROM table_name_22 WHERE rank = "25th"
Write a SQL query that answers the following question: What is the average year Rich Beem had a to par less than 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
SELECT AVG(year_won) FROM table_name_20 WHERE player = "rich beem" AND to_par < 17
Write a SQL query that answers the following question: What is the earliest year won with a total bigger than 156?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year_won INTEGER, total INTEGER)
SELECT MIN(year_won) FROM table_name_81 WHERE total > 156
Write a SQL query that answers the following question: What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)
SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = "bob tway" AND to_par > 7
Write a SQL query that answers the following question: What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)
SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145
Write a SQL query that answers the following question: What is the earliest year won Paul Azinger had with a to par higher than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
SELECT MIN(year_won) FROM table_name_12 WHERE player = "paul azinger" AND to_par > 5
Write a SQL query that answers the following question: What is the year won by Australia with a to par bigger than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16
Write a SQL query that answers the following question: What is the Lifespan when the Representative is Theodore F. Kluttz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR)
SELECT lifespan FROM table_name_96 WHERE representative = "theodore f. kluttz"
Write a SQL query that answers the following question: What week's game had a result of l 35–37?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_88 WHERE result = "l 35–37"
Write a SQL query that answers the following question: What year was trio brdeact wind allass the entrant?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_16 WHERE entrant = "trio brdeact wind allass"
Write a SQL query that answers the following question: What is the year when kurtis kraft 500f was the chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE chassis = "kurtis kraft 500f"
Write a SQL query that answers the following question: What is the earliest year when the points were more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (year INTEGER, points INTEGER)
SELECT MIN(year) FROM table_name_38 WHERE points > 0
Write a SQL query that answers the following question: What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)
SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186
Write a SQL query that answers the following question: Which school in Balclutha has a roll smaller than 55?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (name VARCHAR, area VARCHAR, roll VARCHAR)
SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll < 55
Write a SQL query that answers the following question: When has winnipeg jets with a Score of 4–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR)
SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6"
Write a SQL query that answers the following question: When is Edmonton Oilers in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_99 WHERE home = "edmonton oilers"
Write a SQL query that answers the following question: What is the Score that has a Winnipeg Jets as Visitor on april 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE visitor = "winnipeg jets" AND date = "april 7"
Write a SQL query that answers the following question: What is the Score on April 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_71 WHERE date = "april 6"
Write a SQL query that answers the following question: When has a Record of 1–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_52 WHERE record = "1–0"
Write a SQL query that answers the following question: What is the LLWS when the Year is 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR)
SELECT llws FROM table_name_37 WHERE year = 2003
Write a SQL query that answers the following question: What is the earliest Year when the City is Peabody?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (year INTEGER, city VARCHAR)
SELECT MIN(year) FROM table_name_2 WHERE city = "peabody"
Write a SQL query that answers the following question: What is the total number of Years when the LLWS is 4th place, and when the City is Westport?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (year VARCHAR, llws VARCHAR, city VARCHAR)
SELECT COUNT(year) FROM table_name_19 WHERE llws = "4th place" AND city = "westport"
Write a SQL query that answers the following question: What team has Pony as the kit manufacturer and Gary Mabbutt as the captain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_9 WHERE kit_manufacturer = "pony" AND captain = "gary mabbutt"
Write a SQL query that answers the following question: Who is the manager 1 for Leeds United?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (manager_1 VARCHAR, team VARCHAR)
SELECT manager_1 FROM table_name_95 WHERE team = "leeds united"
Write a SQL query that answers the following question: What is the team with a Pony kit manufacturer and Julian Dicks as the captain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_27 WHERE kit_manufacturer = "pony" AND captain = "julian dicks"
Write a SQL query that answers the following question: What team has a kit manufacturer of Umbro and Eric Cantona as captain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona"
Write a SQL query that answers the following question: Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = "puma" AND shirt_sponsor = "puma"
Write a SQL query that answers the following question: What is the kit manufacturer with Walkers as the shirt sponsor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers"
Write a SQL query that answers the following question: Name the average points for dallara 3087 lola t88/50 and year before 1988
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988
Write a SQL query that answers the following question: Name the sum of points for 1992
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (points INTEGER, year VARCHAR)
SELECT SUM(points) FROM table_name_38 WHERE year = 1992
Write a SQL query that answers the following question: Name the points for year more than 1987
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)
SELECT points FROM table_name_56 WHERE year > 1987
Write a SQL query that answers the following question: Name the year for points less than 20 and chassis of dallara 3087
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_62 WHERE points < 20 AND chassis = "dallara 3087"
Write a SQL query that answers the following question: What is the most apps that a has a total season and 3 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (apps INTEGER, season VARCHAR, goals VARCHAR)
SELECT MAX(apps) FROM table_name_22 WHERE season = "total" AND goals > 3
Write a SQL query that answers the following question: What is the final number of apps with 2 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR)
SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
Write a SQL query that answers the following question: What date did the episode with a weekly ranking of 14 air?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (airdate VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT airdate FROM table_name_62 WHERE bbc_one_weekly_ranking = 14
Write a SQL query that answers the following question: What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = "18.8%" AND bbc_one_weekly_ranking < 16
Write a SQL query that answers the following question: Who has 37 grids?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_36 WHERE grid = 37
Write a SQL query that answers the following question: What is the average grid with more than 23 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_78 WHERE laps > 23
Write a SQL query that answers the following question: What is the average grid with more than 23 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_56 WHERE laps > 23
Write a SQL query that answers the following question: What is the average decile for te puru school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
Write a SQL query that answers the following question: What is the total decile with an Area of whitianga, and a Roll smaller than 835?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT SUM(decile) FROM table_name_64 WHERE area = "whitianga" AND roll < 835
Write a SQL query that answers the following question: Which name has an Area of kennedy bay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR)
SELECT name FROM table_name_50 WHERE area = "kennedy bay"
Write a SQL query that answers the following question: Which years have a Decile larger than 4, and an Area of thames?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (years VARCHAR, decile VARCHAR, area VARCHAR)
SELECT years FROM table_name_55 WHERE decile > 4 AND area = "thames"
Write a SQL query that answers the following question: Which Authority has a Decile smaller than 6, and an Area of opoutere?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (authority VARCHAR, decile VARCHAR, area VARCHAR)
SELECT authority FROM table_name_68 WHERE decile < 6 AND area = "opoutere"
Write a SQL query that answers the following question: Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (gender VARCHAR, name VARCHAR, roll VARCHAR, years VARCHAR, authority VARCHAR)
SELECT gender FROM table_name_17 WHERE years = "1–8" AND authority = "state" AND roll < 184 AND name = "matatoki school"
Write a SQL query that answers the following question: What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_34 WHERE winning_score = –4(71 - 72 - 72 - 69 = 284)
Write a SQL query that answers the following question: What was the winning score of the event where Brian Kamm was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_47 WHERE runner_s__up = "brian kamm"
Write a SQL query that answers the following question: Who was the runner-up for the event that ended with a winning score of –15 (66-67-70-70=273)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_27 WHERE winning_score = –15(66 - 67 - 70 - 70 = 273)
Write a SQL query that answers the following question: On what date was the Nike Colorado Classic held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_39 WHERE tournament = "nike colorado classic"
Write a SQL query that answers the following question: What was the winning score of the Buy.com Siouxland Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open"
Write a SQL query that answers the following question: What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR)
SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8"
Write a SQL query that answers the following question: What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0
Write a SQL query that answers the following question: What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_41 WHERE chassis = "forti fg01b forti fg03" AND year < 1996
Write a SQL query that answers the following question: What is the lowest year for an engine of ford zetec-r v8, and points greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND points > 0
Write a SQL query that answers the following question: What are the average points for an engine of ford zetec-r v8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8"
Write a SQL query that answers the following question: Name the years for elsthorpe school
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_78 WHERE name = "elsthorpe school"
Write a SQL query that answers the following question: Name the total number of roll for st joseph's school when decile is less than 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR)
SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5
Write a SQL query that answers the following question: Name the gender for elsthorpe school
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (gender VARCHAR, name VARCHAR)
SELECT gender FROM table_name_63 WHERE name = "elsthorpe school"
Write a SQL query that answers the following question: Name the drivers for chassis of season cancelled
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR)
SELECT drivers FROM table_name_88 WHERE chassis = "season cancelled"
Write a SQL query that answers the following question: Name the teams for third points of season cancelled
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (teams VARCHAR, third__points_ VARCHAR)
SELECT teams FROM table_name_95 WHERE third__points_ = "season cancelled"
Write a SQL query that answers the following question: Name the engine with rounds of 11 and teams of 25
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (engine VARCHAR, rounds VARCHAR, teams VARCHAR)
SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "25"
Write a SQL query that answers the following question: What was the score for the loss of McDowell (12-7)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)"
Write a SQL query that answers the following question: What is the total laps for the year 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR)
SELECT SUM(laps) FROM table_name_1 WHERE year = 2011
Write a SQL query that answers the following question: Which team is in 9th place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR)
SELECT class AS pos FROM table_name_98 WHERE pos = "9th"
Write a SQL query that answers the following question: What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR)
SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0
Write a SQL query that answers the following question: What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)
SELECT SUM(goals) FROM table_name_8 WHERE team = "partizan" AND country = "serbia" AND division > 1
Write a SQL query that answers the following question: What year was the Honda ra168e 1.5 v6 t engine used?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year VARCHAR, engine VARCHAR)
SELECT year FROM table_name_47 WHERE engine = "honda ra168e 1.5 v6 t"
Write a SQL query that answers the following question: What tyres were used with the mp4/14 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR)
SELECT tyres FROM table_name_40 WHERE chassis = "mp4/14"
Write a SQL query that answers the following question: How many tickets were there sold/available in Barcelona?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city VARCHAR)
SELECT tickets_sold___available FROM table_name_54 WHERE city = "barcelona"
Write a SQL query that answers the following question: How many tickets were sold/available when the gross revenue (2011) was $366,916?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916"
Write a SQL query that answers the following question: How many tickets were sold/available when the gross revenue (2011) was $5,948,390?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT tickets_sold___available FROM table_name_4 WHERE gross_revenue__2011_ = "$5,948,390"
Write a SQL query that answers the following question: What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (gross_revenue__1986_ VARCHAR, tickets_sold___available VARCHAR)
SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)"
Write a SQL query that answers the following question: What was the score in the 1st leg when Stade d'Abidjan was Team 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "stade d'abidjan"
Write a SQL query that answers the following question: What was the aggregate score that had Union Douala as Team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (agg VARCHAR, team_1 VARCHAR)
SELECT agg FROM table_name_55 WHERE team_1 = "union douala"
Write a SQL query that answers the following question: What was the 2nd leg score of the aggregate score of 4-9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (agg VARCHAR)
SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = "4-9"
Write a SQL query that answers the following question: Who was Team 2 when Stationery Stores was Team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "stationery stores"
Write a SQL query that answers the following question: Which Team 1 has an aggregate score of 1-1 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR)
SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1"
Write a SQL query that answers the following question: Can you tell me the Chassis that has the Year of 1977?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_47 WHERE year = 1977
Write a SQL query that answers the following question: Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_7 WHERE chassis = "march 742" AND year > 1974
Write a SQL query that answers the following question: Can you tell me the Chassis that has the Entrant of trivellato racing team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team"
Write a SQL query that answers the following question: Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR, points VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = "scuderia citta del mille"
Write a SQL query that answers the following question: What is the lowest value of a team with revenue less than 374 and a debt of 84%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (value__ INTEGER, revenue__$m_ VARCHAR, debt_as__percentageof_value VARCHAR)
SELECT MIN(value__) AS $m_ FROM table_name_26 WHERE revenue__$m_ < 374 AND debt_as__percentageof_value = "84"
Write a SQL query that answers the following question: What is the highest operating income that change by 2% and is less than $1,036m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR)
SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036
Write a SQL query that answers the following question: Which team did they play on September 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "september 19"
Write a SQL query that answers the following question: What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny"
Write a SQL query that answers the following question: What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny"
Write a SQL query that answers the following question: What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency_mhz < 95.9 AND erp_w = 10
Write a SQL query that answers the following question: What is listed as the highest ERP W with a Call sign of W262AC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac"
Write a SQL query that answers the following question: What's the sum of ERP W with a Frequency MHz that larger than 97.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER)
SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7