Simple Question (Direct)
Simple Question
Q2839725
P106
Q12737077
USER
What does Alphonse Brot do for a living ?
(Q2839725,P106,c(Q12737077))
action filter_type
action find
entity Q2839725
relation P106
type Q12737077
['Q2839725', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2839725 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Alphonse Brot
action filter_type
action find
entity Alphonse Brot
relation occupation
type occupation
['Alphonse Brot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Alphonse_Brot property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q2839725,P106,c(Q12737077))
action filter_type
action find
entity Q2839725
relation P106
type Q12737077
[ANSWER] Alphonse Brot does for a living
['Q2839725', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2839725 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
writer
Writer Alphonse Brot does for a living
writer
action filter_type
action find
entity Alphonse Brot
relation occupation
type occupation
['Alphonse Brot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Alphonse_Brot property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2839725
P40
Q502895
USER
Which person is a child of Alphonse Brot ?
(Q2839725,P40,c(Q502895))
action filter_type
action find
entity Q2839725
relation P40
type Q502895
['Q2839725', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q2839725 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Alphonse Brot
action filter_type
action find
entity Alphonse Brot
relation child
type common name
['Alphonse Brot', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Alphonse_Brot property:child ?b . ?b rdf:type ontology:common_name }
[]
common name
Q18572960
SYSTEM
Eugène Brot
Q18572960
(Q2839725,P40,c(Q502895))
action filter_type
action find
entity Q2839725
relation P40
type Q502895
De [ANSWER] is a child of Alphonse Brot
['Q2839725', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q2839725 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Eugène Brot
De Eugène Brot is a child of Alphonse Brot
Eugène Brot
action filter_type
action find
entity Alphonse Brot
relation child
type common name
['Alphonse Brot', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Alphonse_Brot property:child ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1392368
Q502895
USER
And what about Ferdynand Ruszczyc?
(Q1392368,P40,c(Q502895))
action filter_type
action find
entity Q1392368
relation P40
type Q502895
['Q1392368', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1392368 property:P40 ?i . ?i rdf:type ontology:Q502895 }
Ferdynand Ruszczyc
action filter_type
action find
entity Ferdynand Ruszczyc
relation child
type common name
['Ferdynand Ruszczyc', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ferdynand_Ruszczyc property:child ?i . ?i rdf:type ontology:common_name }
[]
common name
Q27264368
SYSTEM
Oscar V. Rouck
Q27264368
(Q1392368,P40,c(Q502895))
action filter_type
action find
entity Q1392368
relation P40
type Q502895
[ANSWER]
['Q1392368', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1392368 property:P40 ?i . ?i rdf:type ontology:Q502895 }
Oscar V. Rouck
Oscar V. Rouck
action filter_type
action find
entity Ferdynand Ruszczyc
relation child
type common name
['Ferdynand Ruszczyc', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ferdynand_Ruszczyc property:child ?i . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P608
Q33506 Q2668072 Q502895
USER
Which people were displayed at atmost 2 museums or collections ?
(c(Q502895),P608,c(Q33506)|c(Q2668072))
action atmost
action union
action find_tuple_counts
relation P608
type Q502895
type Q33506
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 2
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q33506'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?d WHERE { VALUES ( ?k ) { ( ontology:Q33506 ) ( ontology:Q2668072 ) } . ?c rdf:type ?k } GROUP BY ?d } . FILTER ( ?h <= 2 ) }
action atmost
action union
action find_tuple_counts
relation exhibition history
type common name
type museum
action find_tuple_counts
relation exhibition history
type common name
type collection
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'museum'}, {'concept': 'collection'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?d WHERE { VALUES ( ?k ) { ( ontology:museum ) ( ontology:collection ) } . ?c rdf:type ?k } GROUP BY ?d } . FILTER ( ?h <= 2 ) }
[]
museum collection common name
Q55192 Q17455385 Q15873898
SYSTEM
Gertrude Abercrombie, Jerry Cooke, Chrisje van der Willigen
Q70006 Q17314881 Q17455385 Q15734263 Q15734265 Q6196481 Q7649008 Q16858002 Q15991813 Q16062545 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q15734237 Q2965423 Q6687160 Q20888837 Q22815085 Q5375139 Q9015308 Q805807 Q15873898 Q55192 Q3335569
(c(Q502895),P608,c(Q33506)|c(Q2668072))
action atmost
action union
action find_tuple_counts
relation P608
type Q502895
type Q33506
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 2
[ANSWERS] were displayed at atmost 2 museums or collections
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q33506'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?d WHERE { VALUES ( ?k ) { ( ontology:Q33506 ) ( ontology:Q2668072 ) } . ?c rdf:type ?k } GROUP BY ?d } . FILTER ( ?h <= 2 ) }
Lotte Jacobi René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Alice Havers Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Tony van Alphen Christian Lhopital Louis Ferstadt Angélique Bègue Georges Violet Ena Swansea Juan Carlos Alom Balto Chrisje van der Willigen Gertrude Abercrombie Nancy Elizabeth Prophet
Gertrude Abercrombie, Jerry Cooke and Chrisje van der Willigen were displayed at atmost 2 museums or collections
Gertrude Abercrombie Jerry Cooke Chrisje van der Willigen
action atmost
action union
action find_tuple_counts
relation exhibition history
type common name
type museum
action find_tuple_counts
relation exhibition history
type common name
type collection
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'museum'}, {'concept': 'collection'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) ?d WHERE { VALUES ( ?k ) { ( ontology:museum ) ( ontology:collection ) } . ?c rdf:type ?k } GROUP BY ?d } . FILTER ( ?h <= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1584607 Q2839725
P19
Q56061
USER
Which administrative territories were Alphonse Brot or Harald Leithe-Jasper born ?
OR((Q2839725,P19,c(Q56061)), (Q1584607,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2839725
relation P19
action find
entity Q1584607
relation P19
type Q56061
{'OR': [['Q2839725', 'P19', {'concept': 'Q56061'}], ['Q1584607', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2839725 property:P19 ?y } UNION { resource:Q1584607 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Harald Leithe-Jasper Alphonse Brot
action filter_type
action union
action find
entity Alphonse Brot
relation place of birth
action find
entity Harald Leithe-Jasper
relation place of birth
type administrative territorial entity
{'OR': [['Alphonse Brot', 'place of birth', {'concept': 'administrative territorial entity'}], ['Harald Leithe-Jasper', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Alphonse_Brot property:place_of_birth ?y } UNION { resource:Harald_Leithe-Jasper property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q4656
SYSTEM
Paris, Pula
Q90 Q4656
OR((Q2839725,P19,c(Q56061)), (Q1584607,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2839725
relation P19
action find
entity Q1584607
relation P19
type Q56061
[ANSWERS] were Alphonse Brot or Harald Leithe-Jasper born
{'OR': [['Q2839725', 'P19', {'concept': 'Q56061'}], ['Q1584607', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2839725 property:P19 ?y } UNION { resource:Q1584607 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Paris Pula
Paris and Pula were Alphonse Brot or Harald Leithe-Jasper born
Paris Pula
action filter_type
action union
action find
entity Alphonse Brot
relation place of birth
action find
entity Harald Leithe-Jasper
relation place of birth
type administrative territorial entity
{'OR': [['Alphonse Brot', 'place of birth', {'concept': 'administrative territorial entity'}], ['Harald Leithe-Jasper', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Alphonse_Brot property:place_of_birth ?y } UNION { resource:Harald_Leithe-Jasper property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22688412 Q4656
P161 P6
Q502895
USER
Which people are the head of government of Pula or were casted in Donald Trump's The Art of the Deal: The Movie ?
OR((Q4656,P6,c(Q502895)), (Q22688412,P161,c(Q502895)))
action filter_type
action union
action find
entity Q4656
relation P6
action find
entity Q22688412
relation P161
type Q502895
{'OR': [['Q4656', 'P6', {'concept': 'Q502895'}], ['Q22688412', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q4656 property:P6 ?c } UNION { resource:Q22688412 property:P161 ?c } } . ?c rdf:type ontology:Q502895 }
Donald Trump's The Art of the Deal: The Movie Pula
action filter_type
action union
action find
entity Pula
relation head of government
action find
entity Donald Trump's The Art of the Deal: The Movie
relation cast member
type common name
{'OR': [['Pula', 'head of government', {'concept': 'common name'}], ["Donald Trump's The Art of the Deal: The Movie", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Pula property:head_of_government ?c } UNION { resource:Donald_Trump's_The_Art_of_the_Deal:_The_Movie property:cast_member ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q20965633 Q272927 Q23814 Q497851 Q1232858 Q7153461 Q109324 Q6163031 Q343983 Q7429196
SYSTEM
Some of them are Jacob Tremblay, Kristen Schaal, Stephen Merchant, Andy Richter, Paul Fusco, Paul Scheer, Christopher Lloyd, Jason Mantzoukas, Henry Winkler, Sayeed Shahidi
Q374065 Q37175 Q343983 Q7153461 Q6835627 Q218122 Q7429196 Q20965633 Q296028 Q12628147 Q16935021 Q103646 Q560896 Q109324 Q17489623 Q1232858 Q17270160 Q23814 Q6163031 Q272927 Q497851 Q7340225
OR((Q4656,P6,c(Q502895)), (Q22688412,P161,c(Q502895)))
action filter_type
action union
action find
entity Q4656
relation P6
action find
entity Q22688412
relation P161
type Q502895
[ANSWERS] are the head of government of Pula or were casted in Donald Trump's The Art of the Deal: The Movie
{'OR': [['Q4656', 'P6', {'concept': 'Q502895'}], ['Q22688412', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q4656 property:P6 ?c } UNION { resource:Q22688412 property:P161 ?c } } . ?c rdf:type ontology:Q502895 }
Patton Oswalt Johnny Depp Henry Winkler Paul Scheer Michaela Watkins Robert Morse Sayeed Shahidi Jacob Tremblay Alfred Molina Boris Miletić Tymberlee Hill Ron Howard Jack McBrayer Christopher Lloyd Ron Funches Paul Fusco Emjay Anthony Stephen Merchant Jason Mantzoukas Kristen Schaal Andy Richter Rob Huebel
Jacob Tremblay, Kristen Schaal, Stephen Merchant, Andy Richter, Paul Fusco, Paul Scheer, Christopher Lloyd, Jason Mantzoukas, Henry Winkler and Sayeed Shahidi are the head of government of Pula or were casted in Donald Trump's The Art of the Deal: The Movie
Jacob Tremblay Kristen Schaal Stephen Merchant Andy Richter Paul Fusco Paul Scheer Christopher Lloyd Jason Mantzoukas Henry Winkler Sayeed Shahidi
action filter_type
action union
action find
entity Pula
relation head of government
action find
entity Donald Trump's The Art of the Deal: The Movie
relation cast member
type common name
{'OR': [['Pula', 'head of government', {'concept': 'common name'}], ["Donald Trump's The Art of the Deal: The Movie", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Pula property:head_of_government ?c } UNION { resource:Donald_Trump's_The_Art_of_the_Deal:_The_Movie property:cast_member ?c } } . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q22688412
P161
Q838948
USER
Does Donald Trump's The Art of the Deal: The Movie star those people as actor ?
(Q22688412,P161,Q20965633) (Q22688412,P161,Q272927) (Q22688412,P161,Q23814) (Q22688412,P161,Q497851) (Q22688412,P161,Q1232858) (Q22688412,P161,Q7153461) (Q22688412,P161,Q109324) (Q22688412,P161,Q6163031) (Q22688412,P161,Q343983) (Q22688412,P161,Q7429196)
action is_in
entity prev_answer
action find
entity Q22688412
relation P161
['Q22688412', 'P161', 'Q20965633'] ['Q22688412', 'P161', 'Q272927'] ['Q22688412', 'P161', 'Q23814'] ['Q22688412', 'P161', 'Q497851'] ['Q22688412', 'P161', 'Q1232858'] ['Q22688412', 'P161', 'Q7153461'] ['Q22688412', 'P161', 'Q109324'] ['Q22688412', 'P161', 'Q6163031'] ['Q22688412', 'P161', 'Q343983'] ['Q22688412', 'P161', 'Q7429196']
ASK WHERE { resource:Q22688412 property:P161 ?t . VALUES ( ?t ) { ( resource:Q374065 ) ( resource:Q37175 ) ( resource:Q343983 ) } }
Donald Trump's The Art of the Deal: The Movie
action is_in
entity prev_answer
action find
entity Donald Trump's The Art of the Deal: The Movie
relation cast member
["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Jacob Tremblay'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Kristen Schaal'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Stephen Merchant'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Andy Richter'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Paul Fusco'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Paul Scheer'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Christopher Lloyd'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Jason Mantzoukas'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Henry Winkler'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Sayeed Shahidi']
ASK WHERE { resource:Donald_Trump's_The_Art_of_the_Deal:_The_Movie property:cast_member ?t . VALUES ( ?t ) { ( resource:Patton_Oswalt ) ( resource:Johnny_Depp ) ( resource:Henry_Winkler ) } }
[]
work of art
SYSTEM
YES
(Q22688412,P161,Q20965633) (Q22688412,P161,Q272927) (Q22688412,P161,Q23814) (Q22688412,P161,Q497851) (Q22688412,P161,Q1232858) (Q22688412,P161,Q7153461) (Q22688412,P161,Q109324) (Q22688412,P161,Q6163031) (Q22688412,P161,Q343983) (Q22688412,P161,Q7429196)
action is_in
entity prev_answer
action find
entity Q22688412
relation P161
[ANSWER]
['Q22688412', 'P161', 'Q20965633'] ['Q22688412', 'P161', 'Q272927'] ['Q22688412', 'P161', 'Q23814'] ['Q22688412', 'P161', 'Q497851'] ['Q22688412', 'P161', 'Q1232858'] ['Q22688412', 'P161', 'Q7153461'] ['Q22688412', 'P161', 'Q109324'] ['Q22688412', 'P161', 'Q6163031'] ['Q22688412', 'P161', 'Q343983'] ['Q22688412', 'P161', 'Q7429196']
ASK WHERE { resource:Q22688412 property:P161 ?t . VALUES ( ?t ) { ( resource:Q374065 ) ( resource:Q37175 ) ( resource:Q343983 ) } }
Yes
action is_in
entity prev_answer
action find
entity Donald Trump's The Art of the Deal: The Movie
relation cast member
["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Jacob Tremblay'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Kristen Schaal'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Stephen Merchant'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Andy Richter'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Paul Fusco'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Paul Scheer'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Christopher Lloyd'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Jason Mantzoukas'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Henry Winkler'] ["Donald Trump's The Art of the Deal: The Movie", 'cast member', 'Sayeed Shahidi']
ASK WHERE { resource:Donald_Trump's_The_Art_of_the_Deal:_The_Movie property:cast_member ?t . VALUES ( ?t ) { ( resource:Patton_Oswalt ) ( resource:Johnny_Depp ) ( resource:Henry_Winkler ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1232858 Q502478 Q7417941
P27
Q15617994
USER
Is Paul Fusco a citizen of Quitzdorf am See and Sanger Independent School District ?
(Q1232858,P27,Q502478) (Q1232858,P27,Q7417941)
action is_in
entity Q1232858
action intersection
action find_reverse
entity Q502478
relation P27
action find_reverse
entity Q7417941
relation P27
['Q1232858', 'P27', 'Q502478'] ['Q1232858', 'P27', 'Q7417941']
ASK WHERE { resource:Q1232858 property:P27 resource:Q7417941 . resource:Q1232858 property:P27 resource:Q502478 }
Paul Fusco Quitzdorf am See Sanger Independent School District
action is_in
entity Paul Fusco
action intersection
action find_reverse
entity Quitzdorf am See
relation country of citizenship
action find_reverse
entity Sanger Independent School District
relation country of citizenship
['Paul Fusco', 'country of citizenship', 'Quitzdorf am See'] ['Paul Fusco', 'country of citizenship', 'Sanger Independent School District']
ASK WHERE { resource:Paul_Fusco property:country_of_citizenship resource:Sanger_Independent_School_District . resource:Paul_Fusco property:country_of_citizenship resource:Quitzdorf_am_See }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1232858,P27,Q502478) (Q1232858,P27,Q7417941)
action is_in
entity Q1232858
action intersection
action find_reverse
entity Q502478
relation P27
action find_reverse
entity Q7417941
relation P27
[ANSWER]
['Q1232858', 'P27', 'Q502478'] ['Q1232858', 'P27', 'Q7417941']
ASK WHERE { resource:Q1232858 property:P27 resource:Q7417941 . resource:Q1232858 property:P27 resource:Q502478 }
No
action is_in
entity Paul Fusco
action intersection
action find_reverse
entity Quitzdorf am See
relation country of citizenship
action find_reverse
entity Sanger Independent School District
relation country of citizenship
['Paul Fusco', 'country of citizenship', 'Quitzdorf am See'] ['Paul Fusco', 'country of citizenship', 'Sanger Independent School District']
ASK WHERE { resource:Paul_Fusco property:country_of_citizenship resource:Sanger_Independent_School_District . resource:Paul_Fusco property:country_of_citizenship resource:Quitzdorf_am_See }
[]