Simple Question (Direct)
Simple Question
Q19668088
P69
Q3914
USER
Where was William Gabriel Davy educated ?
(Q19668088,P69,c(Q3914))
action filter_type
action find
entity Q19668088
relation P69
type Q3914
['Q19668088', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?k WHERE { resource:Q19668088 property:P69 ?k . ?k rdf:type ontology:Q3914 }
William Gabriel Davy
action filter_type
action find
entity William Gabriel Davy
relation educated at
type school
['William Gabriel Davy', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?k WHERE { resource:William_Gabriel_Davy property:educated_at ?k . ?k rdf:type ontology:school }
[]
school
Q192088
SYSTEM
Eton College
Q192088
(Q19668088,P69,c(Q3914))
action filter_type
action find
entity Q19668088
relation P69
type Q3914
William Gabriel Davy was educated at [ANSWER]
['Q19668088', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?k WHERE { resource:Q19668088 property:P69 ?k . ?k rdf:type ontology:Q3914 }
Eton College
William Gabriel Davy was educated at Eton College
Eton College
action filter_type
action find
entity William Gabriel Davy
relation educated at
type school
['William Gabriel Davy', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?k WHERE { resource:William_Gabriel_Davy property:educated_at ?k . ?k rdf:type ontology:school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19668088
P21
Q290
USER
Which sex does that person belong to ?
(Q192088,P21,c(Q290))
action filter_type
action find
entity Q19668088
relation P21
type Q290
['Q192088', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q19668088 property:P21 ?v }
William Gabriel Davy
action filter_type
action find
entity William Gabriel Davy
relation gender
type sex
['Eton College', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:William_Gabriel_Davy property:gender ?v }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q192088,P21,c(Q290))
action filter_type
action find
entity Q19668088
relation P21
type Q290
That person belongs to [ANSWER]
['Q192088', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q19668088 property:P21 ?v }
male
That person belongs to male
male
action filter_type
action find
entity William Gabriel Davy
relation gender
type sex
['Eton College', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:William_Gabriel_Davy property:gender ?v }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q12573878 Q19668088
P21
Q290
USER
Or Kaip Khan?
OR((Q19668088,P21,c(Q290)), (Q12573878,P21,c(Q290)))
action filter_type
action union
action find
entity Q19668088
relation P21
action find
entity Q12573878
relation P21
type Q290
{'OR': [['Q19668088', 'P21', {'concept': 'Q290'}], ['Q12573878', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { { ?r property:P21 ?f . VALUES ( ?r ) { ( resource:Q19668088 ) ( resource:Q12573878 ) } } . ?f rdf:type ontology:Q290 }
Kaip Khan William Gabriel Davy
action filter_type
action union
action find
entity William Gabriel Davy
relation gender
action find
entity Kaip Khan
relation gender
type sex
{'OR': [['William Gabriel Davy', 'gender', {'concept': 'sex'}], ['Kaip Khan', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { { ?r property:gender ?f . VALUES ( ?r ) { ( resource:William_Gabriel_Davy ) ( resource:Kaip_Khan ) } } . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q19668088,P21,c(Q290)), (Q12573878,P21,c(Q290)))
action filter_type
action union
action find
entity Q19668088
relation P21
action find
entity Q12573878
relation P21
type Q290
[ANSWER]
{'OR': [['Q19668088', 'P21', {'concept': 'Q290'}], ['Q12573878', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { { ?r property:P21 ?f . VALUES ( ?r ) { ( resource:Q19668088 ) ( resource:Q12573878 ) } } . ?f rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity William Gabriel Davy
relation gender
action find
entity Kaip Khan
relation gender
type sex
{'OR': [['William Gabriel Davy', 'gender', {'concept': 'sex'}], ['Kaip Khan', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { { ?r property:gender ?f . VALUES ( ?r ) { ( resource:William_Gabriel_Davy ) ( resource:Kaip_Khan ) } } . ?f rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q192088
P112
Q502895
USER
How many people founded Eton College ?
(Q192088,P112,c(Q502895))
action count
action filter_type
action find
entity Q192088
relation P112
type Q502895
['Q192088', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q192088 property:P112 ?r . ?r rdf:type ontology:Q502895 }
Eton College
action count
action filter_type
action find
entity Eton College
relation founder
type common name
['Eton College', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Eton_College property:founder ?r . ?r rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q160337
(Q192088,P112,c(Q502895))
action count
action filter_type
action find
entity Q192088
relation P112
type Q502895
[ANSWER]
['Q192088', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q192088 property:P112 ?r . ?r rdf:type ontology:Q502895 }
Henry VI of England
1
action count
action filter_type
action find
entity Eton College
relation founder
type common name
['Eton College', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Eton_College property:founder ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q954536
P112
Q502895
USER
What is the name of the founder of Jerusalem Foundation ?
(Q954536,P112,c(Q502895))
action filter_type
action find
entity Q954536
relation P112
type Q502895
['Q954536', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q954536 property:P112 ?w . ?w rdf:type ontology:Q502895 }
Jerusalem Foundation
action filter_type
action find
entity Jerusalem Foundation
relation founder
type common name
['Jerusalem Foundation', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jerusalem_Foundation property:founder ?w . ?w rdf:type ontology:common_name }
[]
common name
Q302203
SYSTEM
Teddy Kollek
Q302203
(Q954536,P112,c(Q502895))
action filter_type
action find
entity Q954536
relation P112
type Q502895
The name of the founder of Jerusalem Foundation is the [ANSWER]
['Q954536', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q954536 property:P112 ?w . ?w rdf:type ontology:Q502895 }
Teddy Kollek
The name of the founder of Jerusalem Foundation is the Teddy Kollek
Teddy Kollek
action filter_type
action find
entity Jerusalem Foundation
relation founder
type common name
['Jerusalem Foundation', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jerusalem_Foundation property:founder ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q502895 Q14514600 Q95074
USER
Which people inspired min number of groups of fictional characters or fictional characters ?
(c(Q14514600)|c(Q95074),P941,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q14514600
action find_reverse_tuple_counts
relation P941
type Q502895
type Q95074
[[{'concept': 'Q14514600'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?i ) WHERE { { ?p property:P941 ?m . ?m rdf:type ontology:Q502895 . ?p rdf:type ontology:Q14514600 } UNION { ?p property:P941 ?m . ?m rdf:type ontology:Q502895 . ?p rdf:type ontology:Q95074 } } GROUP BY ?m } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?a ) WHERE { { ?v rdf:type ontology:Q502895 . ?f rdf:type ontology:Q14514600 . ?f property:P941 ?v } UNION { ?f property:P941 ?v . ?v rdf:type ontology:Q502895 . ?f rdf:type ontology:Q95074 } } GROUP BY ?v } . FILTER ( ?a = ?t ) }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type group of fictional characters
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional character
[[{'concept': 'group of fictional characters'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?i ) WHERE { { ?p property:inspired_by ?m . ?m rdf:type ontology:common_name . ?p rdf:type ontology:group_of_fictional_characters } UNION { ?p property:inspired_by ?m . ?m rdf:type ontology:common_name . ?p rdf:type ontology:fictional_character } } GROUP BY ?m } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?a ) WHERE { { ?v rdf:type ontology:common_name . ?f rdf:type ontology:group_of_fictional_characters . ?f property:inspired_by ?v } UNION { ?f property:inspired_by ?v . ?v rdf:type ontology:common_name . ?f rdf:type ontology:fictional_character } } GROUP BY ?v } . FILTER ( ?a = ?t ) }
[]
common name group of fictional characters fictional character
Q1744 Q22686 Q5383
SYSTEM
Madonna, Donald Trump, David Bowie
Q207939 Q19738291 Q23380 Q366380 Q334001 Q19526 Q58801 Q207447 Q560792 Q35548 Q205002 Q30755 Q37693 Q302650 Q666171 Q531161 Q5383 Q127171 Q43715 Q5361548 Q312502 Q154545 Q5534471 Q2907490 Q1532260 Q892444 Q164823 Q184226 Q183221 Q81960 Q5592 Q7836 Q5594 Q538158 Q1508997 Q310476 Q183458 Q34618 Q151573 Q3560424 Q947525 Q156268 Q1353414 Q5669 Q5577 Q395274 Q966425 Q47551 Q357951 Q676001 Q5675905 Q37079 Q103343 Q464056 Q313270 Q48319 Q1288359 Q551643 Q273079 Q299271 Q9061 Q849 Q79031 Q150679 Q177692 Q2601617 Q163118 Q5599 Q22686 Q5545355 Q463653 Q483512 Q123075 Q835175 Q229432 Q123071 Q229437 Q44272 Q1744 Q367447 Q5582 Q219640 Q5822 Q5589 Q296 Q352954 Q34013 Q2836532 Q712497 Q221464 Q550426 Q25328 Q203219 Q983441 Q41554 Q83338 Q205365 Q624868 Q1953018 Q983352 Q471023 Q5432 Q1896700 Q156622 Q354832 Q159907 Q1401 Q192222 Q83155 Q2965760 Q3385369 Q2409128 Q1278282 Q5053466 Q513644 Q44122 Q576222
(c(Q14514600)|c(Q95074),P941,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q14514600
action find_reverse_tuple_counts
relation P941
type Q502895
type Q95074
[ANSWERS] inspired min number of groups of fictional characters or fictional characters
[[{'concept': 'Q14514600'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?i ) WHERE { { ?p property:P941 ?m . ?m rdf:type ontology:Q502895 . ?p rdf:type ontology:Q14514600 } UNION { ?p property:P941 ?m . ?m rdf:type ontology:Q502895 . ?p rdf:type ontology:Q95074 } } GROUP BY ?m } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?a ) WHERE { { ?v rdf:type ontology:Q502895 . ?f rdf:type ontology:Q14514600 . ?f property:P941 ?v } UNION { ?f property:P941 ?v . ?v rdf:type ontology:Q502895 . ?f rdf:type ontology:Q95074 } } GROUP BY ?v } . FILTER ( ?a = ?t ) }
Alexander McQueen Walter O'Brien Jean Auguste Dominique Ingres Allan Kaprow Thomas Cole Maya Angelou Conrad Veidt Jean-Baptiste-Siméon Chardin Allan Ramsay Paul Cézanne Joe Grant Auguste Rodin Paul Gauguin Tate Donovan John Marin Elizabeth Kenny David Bowie Jean-Honoré Fragonard Vlad Tepes Elisabeth Scott Fiorello H. La Guardia Léopold Sédar Senghor Geoffrey Bowers Bo Gritz Al Hirschfeld Scott Weinger Girolamo Savonarola Gilles Deleuze Antoine Watteau Robert Burns Michelangelo René Magritte Antonello da Messina Balthasar Denner Georges Manolescu Fats Waller Andrea del Verrocchio Gustave Courbet Paul Signac Violet Gordon-Woodhouse Robert Gant Pierre Bourdieu Robert Gober Sandro Botticelli Salvador Dalí Michael J. Fox Charles Hubert Millevoye Titian Mehran Karimi Nasseri Eugène Devéria Andrés López Muñoz Tom Cruise Jennifer Connelly Gala Dalí Jerome Kern Hans Holbein Félix González-Torres Jean Goujon Cab Calloway Bahram V Karl Marx François Villon Mike Tyson Anthony van Dyck Andrea Palladio Leonard Baskin Marguerite Yourcenar Peter Paul Rubens Donald Trump George Turberville Marie-Thérèse Walter Isadora Duncan Robert Walser Bernard Levin Lucretia Arnold Böcklin Donatella Versace Michel Foucault Madonna Louis Prima Vincent van Gogh Vincent Price Piero della Francesca Henri Matisse Claude Monet Carel Fabritius Georges Seurat Alice Ayres François Girardon Gilbert Gottfried Jeffrey Katzenberg Antoni Gaudí Boris Karloff Thomas Moran Nicolas Poussin Robin Williams Cain Charles Sheeler Pratibha Ray Il Pordenone Jimmy Durante Francisco de Goya Marian Wright Edelman Giorgio de Chirico Pieter Claesz David Hockney Petrarch Lysippos Jacques-Louis David Christiane Faure Pierre Guillaume Dušan Popov Eastman Johnson Cathy McGowan Ray Ventura Django Reinhardt Floris van Dyck
Madonna, Donald Trump and David Bowie inspired min number of groups of fictional characters or fictional characters
Madonna Donald Trump David Bowie
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type group of fictional characters
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional character
[[{'concept': 'group of fictional characters'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?i ) WHERE { { ?p property:inspired_by ?m . ?m rdf:type ontology:common_name . ?p rdf:type ontology:group_of_fictional_characters } UNION { ?p property:inspired_by ?m . ?m rdf:type ontology:common_name . ?p rdf:type ontology:fictional_character } } GROUP BY ?m } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?a ) WHERE { { ?v rdf:type ontology:common_name . ?f rdf:type ontology:group_of_fictional_characters . ?f property:inspired_by ?v } UNION { ?f property:inspired_by ?v . ?v rdf:type ontology:common_name . ?f rdf:type ontology:fictional_character } } GROUP BY ?v } . FILTER ( ?a = ?t ) }
[]