question
stringlengths
12
150
query
stringlengths
51
1.28k
Did a person marry a cinematographer , influence M1 , and influence M2
SELECT count(*) WHERE { ?x0 a ns:people.person . ?x0 ns:influence.influence_node.influenced M1 . ?x0 ns:influence.influence_node.influenced M2 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 a ns:film.cinematographer . FILTER ( ?x0 != ?x1 ) }
Was a person 's spouse influenced by M0
SELECT count(*) WHERE { ?x0 ns:influence.influence_node.influenced_by M0 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 a ns:people.person . FILTER ( ?x0 != ?x1 ) }
Was M2 directed by M3 and M4 and written by a male person 's sibling
SELECT count(*) WHERE { ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x1 . ?x1 a ns:people.person . ?x1 ns:people.person.gender ns:m.05zppz . FILTER ( ?x0 != ?x1 ) . M2 ns:film.film.directed_by M3 . M2 ns:film.film.directed_by M4 . M2 ns:film.film.written_by ?x0 }
What did M0 's costume designer , star , and producer found
SELECT DISTINCT ?x0 WHERE { ?x0 ns:organization.organization.founders ?x1 . ?x1 ns:film.actor.film/ns:film.performance.film M0 . ?x1 ns:film.film_costumer_designer.costume_design_for_film M0 . ?x1 ns:film.producer.film|ns:film.production_company.films M0 }
Who wrote M1 and wrote a film
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:film.writer.film ?x1 . ?x0 ns:film.writer.film M1 . ?x1 a ns:film.film }
What was executive produced by M1 's employee and executive produced by M0
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.executive_produced_by M0 . ?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 }
Who did M2 's male spouse marry
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 ns:people.person.gender ns:m.05zppz . ?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 . FILTER ( ?x0 != ?x1 ) . FILTER ( ?x1 != M2 ) }
Was a art director employed by M1 and M2 and employed by a company
SELECT count(*) WHERE { ?x0 a ns:film.film_art_director . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 . ?x1 a ns:business.employer }
Was a actor of M0 's director M1
SELECT count(*) WHERE { ?x0 ns:film.director.film M0 . M1 ns:film.actor.film/ns:film.performance.character ?x0 }
Were M1 , M3 , M4 , M5 , and M6 written by M2 and directed by a film producer
SELECT count(*) WHERE { ?x0 a ns:film.producer . M1 ns:film.film.directed_by ?x0 . M1 ns:film.film.written_by M2 . M3 ns:film.film.directed_by ?x0 . M3 ns:film.film.written_by M2 . M4 ns:film.film.directed_by ?x0 . M4 ns:film.film.written_by M2 . M5 ns:film.film.directed_by ?x0 . M5 ns:film.film.written_by M2 . M6 ns:film.film.directed_by ?x0 . M6 ns:film.film.written_by M2 }
Was M1 distributed by M2 and M3 and produced by a company 's child and parent
SELECT count(*) WHERE { ?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 . ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 . ?x1 a ns:business.employer . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 . M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 }
Did M1 employ a spouse of a actor
SELECT count(*) WHERE { ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 a ns:film.actor . FILTER ( ?x0 != ?x1 ) . M1 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 }
Did a French screenwriter 's parent edit and write M0
SELECT count(*) WHERE { ?x0 ns:film.editor.film M0 . ?x0 ns:film.writer.film M0 . ?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 . ?x1 a ns:film.writer . ?x1 ns:people.person.nationality ns:m.0f8l9c }
Was M0 a cinematographer that wrote , edited , and executive produced M2
SELECT count(*) WHERE { M0 a ns:film.cinematographer . M0 ns:film.editor.film M2 . M0 ns:film.producer.films_executive_produced M2 . M0 ns:film.writer.film M2 }
Was M1 executive produced , produced , and written by a screenwriter
SELECT count(*) WHERE { ?x0 a ns:film.writer . M1 ns:film.film.executive_produced_by ?x0 . M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M1 ns:film.film.written_by ?x0 }
What was written by , directed by , and produced by a film director influenced by M1
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 a ns:film.director . ?x1 ns:influence.influence_node.influenced_by M1 }
What was written by a Spanish art director , written by M3 's writer , and executive produced by M0
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by M0 . ?x0 ns:film.film.written_by ?x1 . ?x0 ns:film.film.written_by ?x2 . ?x1 a ns:film.film_art_director . ?x1 ns:people.person.nationality ns:m.06mkj . ?x2 ns:film.writer.film M3 }
What was executive produced by and written by a sibling of M0
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x1 != M0 ) }
Was a sequel of M0 produced by , edited by , and directed by a cinematographer
SELECT count(*) WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.prequel M0 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x1 a ns:film.cinematographer }
Did a film director influence M1 and marry M3 's French director
SELECT count(*) WHERE { ?x0 a ns:film.director . ?x0 ns:influence.influence_node.influenced M1 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 ns:film.director.film M3 . ?x1 ns:people.person.nationality ns:m.0f8l9c . FILTER ( ?x0 != ?x1 ) }
Was M2 founded by M0 's founder and employee , founded by M3 and M4 , and founded by a actor
SELECT count(*) WHERE { ?x0 ns:organization.organization_founder.organizations_founded M0 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 . ?x1 a ns:film.actor . M2 ns:organization.organization.founders ?x0 . M2 ns:organization.organization.founders ?x1 . M2 ns:organization.organization.founders M3 . M2 ns:organization.organization.founders M4 }
Were M1 , M2 , M3 , M4 , and M5 written by and executive produced by a film producer 's child
SELECT count(*) WHERE { ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 . ?x1 a ns:film.producer . M1 ns:film.film.executive_produced_by ?x0 . M1 ns:film.film.written_by ?x0 . M2 ns:film.film.executive_produced_by ?x0 . M2 ns:film.film.written_by ?x0 . M3 ns:film.film.executive_produced_by ?x0 . M3 ns:film.film.written_by ?x0 . M4 ns:film.film.executive_produced_by ?x0 . M4 ns:film.film.written_by ?x0 . M5 ns:film.film.executive_produced_by ?x0 . M5 ns:film.film.written_by ?x0 }
Was M1 M0 's spouse 's child and spouse
SELECT count(*) WHERE { ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 . FILTER ( ?x0 != M0 ) . FILTER ( M1 != ?x0 ) . M1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0 . M1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 }
Was M2 written by a Spanish actor of M1
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.character M1 . ?x0 ns:people.person.nationality ns:m.06mkj . M2 ns:film.film.written_by ?x0 }
What was executive produced , edited , directed , produced , and written by M0 's producer and costume designer
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:film.film_costumer_designer.costume_design_for_film M0 . ?x1 ns:film.producer.film|ns:film.production_company.films M0 }
Was M0 's Mexican sibling 's American child M2
SELECT count(*) WHERE { ?x0 ns:people.person.nationality ns:m.0b90_r . ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x0 != M0 ) . M2 ns:people.person.nationality ns:m.09c7w0 . M2 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0 }
Did a Italian film director found M1
SELECT count(*) WHERE { ?x0 a ns:film.director . ?x0 ns:organization.organization_founder.organizations_founded M1 . ?x0 ns:people.person.nationality ns:m.03rjj }
What film that was edited by and executive produced by a producer of M2 was executive produced and written by M1
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.executive_produced_by M1 . ?x0 ns:film.film.written_by M1 . ?x1 ns:film.producer.film|ns:film.production_company.films M2 }
Did a actor 's Spanish actor write M0
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.character ?x1 . ?x0 ns:film.writer.film M0 . ?x0 ns:people.person.nationality ns:m.06mkj . ?x1 a ns:film.actor }
What film producer was founded by a Italian person 's child and founded by M1 and M2
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.producer . ?x0 ns:organization.organization.founders ?x1 . ?x0 ns:organization.organization.founders M1 . ?x0 ns:organization.organization.founders M2 . ?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x2 . ?x2 a ns:people.person . ?x2 ns:people.person.nationality ns:m.03rjj }
What film was written , edited , and directed by a star of M1
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film . ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:film.actor.film/ns:film.performance.film M1 }
Was M3 influenced by M4 and influenced by a Swedish actor that was influenced by M1
SELECT count(*) WHERE { ?x0 a ns:film.actor . ?x0 ns:influence.influence_node.influenced_by M1 . ?x0 ns:people.person.nationality ns:m.0d0vqn . M3 ns:influence.influence_node.influenced_by ?x0 . M3 ns:influence.influence_node.influenced_by M4 }
What cinematographer was a film editor that M2 and M3 married
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.cinematographer . ?x0 a ns:film.editor . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M3 . FILTER ( ?x0 != M2 ) . FILTER ( ?x0 != M3 ) }
Was a film directed by a film editor and directed by M3 M1
SELECT count(*) WHERE { ?x0 a ns:film.editor . M1 a ns:film.film . M1 ns:film.film.directed_by ?x0 . M1 ns:film.film.directed_by M3 }
Was a cinematographer of a prequel of M0 M1
SELECT count(*) WHERE { ?x0 ns:film.film.sequel M0 . M1 ns:film.cinematographer.film ?x0 }
What was edited by , directed by , and written by a Swedish art director that produced M2
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 a ns:film.film_art_director . ?x1 ns:film.producer.film|ns:film.production_company.films M2 . ?x1 ns:people.person.nationality ns:m.0d0vqn }
Did M2 star M0 's founder , star M3 , and star a cinematographer
SELECT count(*) WHERE { ?x0 ns:organization.organization_founder.organizations_founded M0 . ?x1 a ns:film.cinematographer . M2 ns:film.film.starring/ns:film.performance.actor ?x0 . M2 ns:film.film.starring/ns:film.performance.actor ?x1 . M2 ns:film.film.starring/ns:film.performance.actor M3 }
Which film was executive produced by a art director and written by M1
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.written_by M1 . ?x1 a ns:film.film_art_director }
What was edited by M1 , written by M0 , and produced by M3 's Spanish actor
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.edited_by M1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by M0 . ?x1 ns:film.actor.film/ns:film.performance.character M3 . ?x1 ns:people.person.nationality ns:m.06mkj }
Was M3 a Italian film producer whose American spouse was employed by M0 and founded M1
SELECT count(*) WHERE { ?x0 ns:organization.organization_founder.organizations_founded M1 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 . ?x0 ns:people.person.nationality ns:m.09c7w0 . FILTER ( M3 != ?x0 ) . M3 a ns:film.producer . M3 ns:people.person.nationality ns:m.03rjj . M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 }
What was produced , written , and executive produced by a Italian art director
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 a ns:film.film_art_director . ?x1 ns:people.person.nationality ns:m.03rjj }
Were M1 and M2 written by a parent of M0
SELECT count(*) WHERE { ?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M0 . M1 ns:film.film.written_by ?x0 . M2 ns:film.film.written_by ?x0 }
Was M0 a person that M2 was produced by and executive produced by
SELECT count(*) WHERE { M0 a ns:people.person . M0 ns:film.producer.films_executive_produced M2 . M0 ns:film.producer.film|ns:film.production_company.films M2 }
Was a production company 's parent founded by M0 and M1
SELECT count(*) WHERE { ?x0 ns:organization.organization.founders M0 . ?x0 ns:organization.organization.founders M1 . ?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 . ?x1 a ns:film.production_company }
Did M1 executive produce , write , direct , edit , and produce M0 's sequel
SELECT count(*) WHERE { ?x0 ns:film.film.prequel M0 . M1 ns:film.director.film ?x0 . M1 ns:film.editor.film ?x0 . M1 ns:film.producer.films_executive_produced ?x0 . M1 ns:film.producer.film|ns:film.production_company.films ?x0 . M1 ns:film.writer.film ?x0 }
What did a employee and founder of M0 direct
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x1 ns:organization.organization_founder.organizations_founded M0 . ?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M0 }
What was executive produced by M0 's Spanish sibling
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by ?x1 . ?x1 ns:people.person.nationality ns:m.06mkj . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x1 != M0 ) }
Were M1 and M4 produced by M2 , executive produced by M0 's employee and founder , and directed by M3
SELECT count(*) WHERE { ?x0 ns:organization.organization_founder.organizations_founded M0 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 . M1 ns:film.film.directed_by M3 . M1 ns:film.film.executive_produced_by ?x0 . M1 ns:film.film.produced_by|ns:film.film.production_companies M2 . M4 ns:film.film.directed_by M3 . M4 ns:film.film.executive_produced_by ?x0 . M4 ns:film.film.produced_by|ns:film.film.production_companies M2 }
What was produced by M3 's executive producer and star , distributed by M0 , and distributed by M1 and M2
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M0 . ?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 . ?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x1 ns:film.actor.film/ns:film.performance.film M3 . ?x1 ns:film.producer.films_executive_produced M3 }
Was M3 written by , produced by , and directed by a female American star of M1
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film M1 . ?x0 ns:people.person.gender ns:m.02zsn . ?x0 ns:people.person.nationality ns:m.09c7w0 . M3 ns:film.film.directed_by ?x0 . M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M3 ns:film.film.written_by ?x0 }
Did a film editor 's sibling marry M0
SELECT count(*) WHERE { ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x1 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 . ?x1 a ns:film.editor . FILTER ( ?x0 != ?x1 ) . FILTER ( ?x0 != M0 ) }
Was M1 M0 's prequel 's cinematographer , editor , art director , and executive producer
SELECT count(*) WHERE { ?x0 ns:film.film.sequel M0 . M1 ns:film.cinematographer.film ?x0 . M1 ns:film.editor.film ?x0 . M1 ns:film.film_art_director.films_art_directed ?x0 . M1 ns:film.producer.films_executive_produced ?x0 }
What was directed , executive produced , written , and edited by a employee of M0
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.edited_by ?x1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M0 }
Which film editor married a art director and was influenced by M1
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.editor . ?x0 ns:influence.influence_node.influenced_by M1 . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 a ns:film.film_art_director . FILTER ( ?x0 != ?x1 ) }
Were M2 and M5 influenced by M3 , influenced by M4 , and influenced by M0 's Canadian sibling 's child
SELECT count(*) WHERE { ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 . ?x1 ns:people.person.nationality ns:m.0d060g . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x1 != M0 ) . M2 ns:influence.influence_node.influenced_by ?x0 . M2 ns:influence.influence_node.influenced_by M3 . M2 ns:influence.influence_node.influenced_by M4 . M5 ns:influence.influence_node.influenced_by ?x0 . M5 ns:influence.influence_node.influenced_by M3 . M5 ns:influence.influence_node.influenced_by M4 }
Did a company acquire M1 and acquire M2
SELECT count(*) WHERE { ?x0 a ns:business.employer . ?x0 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired M1 . ?x0 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired M2 }
Who did a art director of M1 marry
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 ns:film.film_art_director.films_art_directed M1 . FILTER ( ?x0 != ?x1 ) }
What did M0 executive produce and M1 's sibling executive produce
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.executive_produced_by M0 . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M1 . FILTER ( ?x1 != M1 ) }
Was M0 's sequel 's German female costume designer M1
SELECT count(*) WHERE { ?x0 ns:film.film.prequel M0 . M1 ns:film.film_costumer_designer.costume_design_for_film ?x0 . M1 ns:people.person.gender ns:m.02zsn . M1 ns:people.person.nationality ns:m.0345h }
Did M1 acquire a production company 's parent
SELECT count(*) WHERE { ?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 . ?x1 a ns:film.production_company . M1 ns:organization.organization.companies_acquired/ns:business.acquisition.company_acquired ?x0 }
Was a art director that M2 was founded by M0
SELECT count(*) WHERE { M0 a ns:film.film_art_director . M0 ns:organization.organization_founder.organizations_founded M2 }
Was a gender of M0 's producer M1
SELECT count(*) WHERE { ?x0 ns:film.producer.film|ns:film.production_company.films M0 . M1 ^ns:people.person.gender ?x0 }
What did a costume designer employed by M1 produce
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x1 a ns:film.film_costumer_designer . ?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 }
Was a production company whose founder produced M1 and edited M0 M2
SELECT count(*) WHERE { ?x0 ns:film.editor.film M0 . ?x0 ns:film.producer.film|ns:film.production_company.films M1 . M2 a ns:film.production_company . M2 ns:organization.organization.founders ?x0 }
Did M1 marry M3 , marry M0 's star and editor , and influence M2
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film M0 . ?x0 ns:film.editor.film M0 . FILTER ( M1 != ?x0 ) . FILTER ( M1 != M3 ) . M1 ns:influence.influence_node.influenced M2 . M1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 . M1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M3 }
What was directed by M0 and M1 and executive produced by a film producer that M3 starred
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by M0 . ?x0 ns:film.film.directed_by M1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x1 a ns:film.producer . ?x1 ns:film.actor.film/ns:film.performance.film M3 }
Who was employed by M1 's employer and employed by a production company 's child and parent
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x2 . ?x1 ns:business.employer.employees/ns:business.employment_tenure.person M1 . ?x2 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x3 . ?x2 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x3 . ?x3 a ns:film.production_company }
Was M0 M1 's executive producer and star
SELECT count(*) WHERE { M0 ns:film.actor.film/ns:film.performance.film M1 . M0 ns:film.producer.films_executive_produced M1 }
Did a art director influence M1 's star and influence M2 's sequel 's cinematographer , star , and writer
SELECT count(*) WHERE { ?x0 a ns:film.film_art_director . ?x0 ns:influence.influence_node.influenced ?x1 . ?x0 ns:influence.influence_node.influenced ?x2 . ?x1 ns:film.actor.film/ns:film.performance.film M1 . ?x2 ns:film.actor.film/ns:film.performance.film ?x3 . ?x2 ns:film.cinematographer.film ?x3 . ?x2 ns:film.writer.film ?x3 . ?x3 ns:film.film.prequel M2 }
Did M2 and M3 marry a French film director 's spouse
SELECT count(*) WHERE { ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 . ?x1 a ns:film.director . ?x1 ns:people.person.nationality ns:m.0f8l9c . FILTER ( ?x0 != ?x1 ) . FILTER ( M2 != ?x0 ) . FILTER ( M3 != ?x0 ) . M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 . M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 }
Were M1 , M3 , M4 , M5 , and M6 written by M2 and written by M0 's employee and founder
SELECT count(*) WHERE { ?x0 ns:organization.organization_founder.organizations_founded M0 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 . M1 ns:film.film.written_by ?x0 . M1 ns:film.film.written_by M2 . M3 ns:film.film.written_by ?x0 . M3 ns:film.film.written_by M2 . M4 ns:film.film.written_by ?x0 . M4 ns:film.film.written_by M2 . M5 ns:film.film.written_by ?x0 . M5 ns:film.film.written_by M2 . M6 ns:film.film.written_by ?x0 . M6 ns:film.film.written_by M2 }
What did M0 's spouse found
SELECT DISTINCT ?x0 WHERE { ?x0 ns:organization.organization.founders ?x1 . ?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 . FILTER ( ?x1 != M0 ) }
Was M1 written by , executive produced by , and produced by a screenwriter
SELECT count(*) WHERE { ?x0 a ns:film.writer . M1 ns:film.film.executive_produced_by ?x0 . M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M1 ns:film.film.written_by ?x0 }
Did M2 influence a film director 's child and influence a film editor
SELECT count(*) WHERE { ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 . ?x1 a ns:film.director . ?x2 a ns:film.editor . M2 ns:influence.influence_node.influenced ?x0 . M2 ns:influence.influence_node.influenced ?x2 }
What film editor wrote M1 's prequel
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.editor . ?x0 ns:film.writer.film ?x1 . ?x1 ns:film.film.sequel M1 }
What did a director , producer , and costume designer of M0 produce and write
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:film.director.film M0 . ?x1 ns:film.film_costumer_designer.costume_design_for_film M0 . ?x1 ns:film.producer.film|ns:film.production_company.films M0 }
Was M1 distributed by a distributor and producer of M0 and distributed by M2 and M3
SELECT count(*) WHERE { ?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M0 . ?x0 ns:film.producer.film|ns:film.production_company.films M0 . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 }
Was M1 directed by a spouse of M0
SELECT count(*) WHERE { ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M0 . FILTER ( ?x0 != M0 ) . M1 ns:film.film.directed_by ?x0 }
Who was a Mexican male art director that M3 starred
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film_art_director . ?x0 a ns:people.person . ?x0 ns:film.actor.film/ns:film.performance.film M3 . ?x0 ns:people.person.gender ns:m.05zppz . ?x0 ns:people.person.nationality ns:m.0b90_r }
Was M1 a art director , executive producer , and writer of M0 's sequel
SELECT count(*) WHERE { ?x0 ns:film.film.prequel M0 . M1 ns:film.film_art_director.films_art_directed ?x0 . M1 ns:film.producer.films_executive_produced ?x0 . M1 ns:film.writer.film ?x0 }
What did a screenwriter influenced by M1 direct , produce , and write
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by ?x1 . ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 a ns:film.writer . ?x1 ns:influence.influence_node.influenced_by M1 }
Did M0 and M2 executive produce and write M1
SELECT count(*) WHERE { M0 ns:film.producer.films_executive_produced M1 . M0 ns:film.writer.film M1 . M2 ns:film.producer.films_executive_produced M1 . M2 ns:film.writer.film M1 }
Was M0 's female sibling influenced by M1 and M2
SELECT count(*) WHERE { ?x0 ns:influence.influence_node.influenced_by M1 . ?x0 ns:influence.influence_node.influenced_by M2 . ?x0 ns:people.person.gender ns:m.02zsn . ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x0 != M0 ) }
Were M2 and M3 influenced by a child of M0 and influenced by a film producer 's parent
SELECT count(*) WHERE { ?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M0 . ?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 . ?x2 a ns:film.producer . M2 ns:influence.influence_node.influenced_by ?x0 . M2 ns:influence.influence_node.influenced_by ?x1 . M3 ns:influence.influence_node.influenced_by ?x0 . M3 ns:influence.influence_node.influenced_by ?x1 }
Was M3 directed by a art director , directed by M4 , and executive produced by a female spouse of M1
SELECT count(*) WHERE { ?x0 ns:people.person.gender ns:m.02zsn . ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M1 . ?x1 a ns:film.film_art_director . FILTER ( ?x0 != M1 ) . M3 ns:film.film.directed_by ?x1 . M3 ns:film.film.directed_by M4 . M3 ns:film.film.executive_produced_by ?x0 }
Was a art director a cinematographer that was employed by M2 and M3 and founded M4
SELECT count(*) WHERE { ?x0 a ns:film.cinematographer . ?x0 a ns:film.film_art_director . ?x0 ns:organization.organization_founder.organizations_founded M4 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M3 }
Was M2 directed by M0 's Japanese sibling
SELECT count(*) WHERE { ?x0 ns:people.person.nationality ns:m.03_3d . ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings M0 . FILTER ( ?x0 != M0 ) . M2 ns:film.film.directed_by ?x0 }
Was M2 edited by a costume designer 's Canadian sibling
SELECT count(*) WHERE { ?x0 ns:people.person.nationality ns:m.0d060g . ?x0 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x1 . ?x1 a ns:film.film_costumer_designer . FILTER ( ?x0 != ?x1 ) . M2 ns:film.film.edited_by ?x0 }
Was M1 produced by , executive produced by , directed by , written by , and edited by a film 's star
SELECT count(*) WHERE { ?x0 ns:film.actor.film/ns:film.performance.film ?x1 . ?x1 a ns:film.film . M1 ns:film.film.directed_by ?x0 . M1 ns:film.film.edited_by ?x0 . M1 ns:film.film.executive_produced_by ?x0 . M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 . M1 ns:film.film.written_by ?x0 }
Which German film producer did M1 employ
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.producer . ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 . ?x0 ns:people.person.nationality ns:m.0345h }
Was M2 a male person 's child and sibling
SELECT count(*) WHERE { ?x0 a ns:people.person . ?x0 ns:people.person.gender ns:m.05zppz . FILTER ( M2 != ?x0 ) . M2 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0 . M2 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x0 }
Was a film 's prequel edited by M0
SELECT count(*) WHERE { ?x0 ns:film.film.edited_by M0 . ?x0 ns:film.film.sequel ?x1 . ?x1 a ns:film.film }
Was M1 produced by M3 , distributed by M2 , and distributed by a film director
SELECT count(*) WHERE { ?x0 a ns:film.director . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 . M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 . M1 ns:film.film.produced_by|ns:film.film.production_companies M3 }
Did M2 and M3 employ a British screenwriter
SELECT count(*) WHERE { ?x0 a ns:film.writer . ?x0 ns:people.person.nationality ns:m.07ssc . M2 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 . M3 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 }
Was M1 a production company 's employee 's child
SELECT count(*) WHERE { ?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 . ?x1 a ns:film.production_company . M1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x0 }
What did a screenwriter 's sibling and parent write
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.written_by ?x1 . ?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x2 . ?x2 a ns:film.writer . FILTER ( ?x1 != ?x2 ) }
What was produced by M0 's sequel 's star and editor
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 . ?x1 ns:film.actor.film/ns:film.performance.film ?x2 . ?x1 ns:film.editor.film ?x2 . ?x2 ns:film.film.prequel M0 }
What was directed by M1 , executive produced by M0 , and executive produced by M3 's star 's Canadian sibling
SELECT DISTINCT ?x0 WHERE { ?x0 ns:film.film.directed_by M1 . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.executive_produced_by M0 . ?x1 ns:people.person.nationality ns:m.0d060g . ?x1 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x2 . ?x2 ns:film.actor.film/ns:film.performance.film M3 . FILTER ( ?x1 != ?x2 ) }
What film was written by and executive produced by M1 's editor
SELECT DISTINCT ?x0 WHERE { ?x0 a ns:film.film . ?x0 ns:film.film.executive_produced_by ?x1 . ?x0 ns:film.film.written_by ?x1 . ?x1 ns:film.editor.film M1 }
What did M1 's executive producer found and M0 found
SELECT DISTINCT ?x0 WHERE { ?x0 ns:organization.organization.founders ?x1 . ?x0 ns:organization.organization.founders M0 . ?x1 ns:film.producer.films_executive_produced M1 }

Dataset Card for "cfq"

Dataset Summary

The Compositional Freebase Questions (CFQ) is a dataset that is specifically designed to measure compositional generalization. CFQ is a simple yet realistic, large dataset of natural language questions and answers that also provides for each question a corresponding SPARQL query against the Freebase knowledge base. This means that CFQ can also be used for semantic parsing.

Supported Tasks and Leaderboards

More Information Needed

Languages

English (en).

Dataset Structure

Data Instances

mcd1

  • Size of downloaded dataset files: 267.60 MB
  • Size of the generated dataset: 42.90 MB
  • Total amount of disk used: 310.49 MB

An example of 'train' looks as follows.

{
  'query': 'SELECT count(*) WHERE {\n?x0 a ns:people.person .\n?x0 ns:influence.influence_node.influenced M1 .\n?x0 ns:influence.influence_node.influenced M2 .\n?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .\n?x1 a ns:film.cinematographer .\nFILTER ( ?x0 != ?x1 )\n}',
  'question': 'Did a person marry a cinematographer , influence M1 , and influence M2'
}

mcd2

  • Size of downloaded dataset files: 267.60 MB
  • Size of the generated dataset: 44.77 MB
  • Total amount of disk used: 312.38 MB

An example of 'train' looks as follows.

{
  'query': 'SELECT count(*) WHERE {\n?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .\n?x1 a ns:people.person .\nM1 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 .\nM1 ns:business.employer.employees/ns:business.employment_tenure.person M2 .\nM1 ns:business.employer.employees/ns:business.employment_tenure.person M3 .\nM1 ns:business.employer.employees/ns:business.employment_tenure.person M4 .\nM5 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 .\nM5 ns:business.employer.employees/ns:business.employment_tenure.person M2 .\nM5 ns:business.employer.employees/ns:business.employment_tenure.person M3 .\nM5 ns:business.employer.employees/ns:business.employment_tenure.person M4\n}',
  'question': "Did M1 and M5 employ M2 , M3 , and M4 and employ a person 's child"
}

mcd3

  • Size of downloaded dataset files: 267.60 MB
  • Size of the generated dataset: 43.60 MB
  • Total amount of disk used: 311.20 MB

An example of 'train' looks as follows.

{
    "query": "SELECT /producer M0 . /director M0 . ",
    "question": "Who produced and directed M0?"
}

query_complexity_split

  • Size of downloaded dataset files: 267.60 MB
  • Size of the generated dataset: 45.95 MB
  • Total amount of disk used: 313.55 MB

An example of 'train' looks as follows.

{
    "query": "SELECT /producer M0 . /director M0 . ",
    "question": "Who produced and directed M0?"
}

query_pattern_split

  • Size of downloaded dataset files: 267.60 MB
  • Size of the generated dataset: 46.12 MB
  • Total amount of disk used: 313.72 MB

An example of 'train' looks as follows.

{
    "query": "SELECT /producer M0 . /director M0 . ",
    "question": "Who produced and directed M0?"
}

Data Fields

The data fields are the same among all splits and configurations:

  • question: a string feature.
  • query: a string feature.

Data Splits

name train test
mcd1 95743 11968
mcd2 95743 11968
mcd3 95743 11968
query_complexity_split 100654 9512
query_pattern_split 94600 12589
question_complexity_split 98999 10340
question_pattern_split 95654 11909
random_split 95744 11967

Dataset Creation

Curation Rationale

More Information Needed

Source Data

Initial Data Collection and Normalization

More Information Needed

Who are the source language producers?

More Information Needed

Annotations

Annotation process

More Information Needed

Who are the annotators?

More Information Needed

Personal and Sensitive Information

More Information Needed

Considerations for Using the Data

Social Impact of Dataset

More Information Needed

Discussion of Biases

More Information Needed

Other Known Limitations

More Information Needed

Additional Information

Dataset Curators

More Information Needed

Licensing Information

More Information Needed

Citation Information


@inproceedings{Keysers2020,
  title={Measuring Compositional Generalization: A Comprehensive Method on
         Realistic Data},
  author={Daniel Keysers and Nathanael Sch"{a}rli and Nathan Scales and
          Hylke Buisman and Daniel Furrer and Sergii Kashubin and
          Nikola Momchev and Danila Sinopalnikov and Lukasz Stafiniak and
          Tibor Tihon and Dmitry Tsarkov and Xiao Wang and Marc van Zee and
          Olivier Bousquet},
  booktitle={ICLR},
  year={2020},
  url={https://arxiv.org/abs/1912.09713.pdf},
}

Contributions

Thanks to @thomwolf, @patrickvonplaten, @lewtun, @brainshawn for adding this dataset.

Downloads last month
558