Simple Question (Direct)
Simple Question
Q57254
P103
Q34770
USER
What is the mother tongue of Ollanta Humala ?
(Q57254,P103,c(Q34770))
action filter_type
action find
entity Q57254
relation P103
type Q34770
['Q57254', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q57254 property:P103 ?e }
Ollanta Humala
action filter_type
action find
entity Ollanta Humala
relation native language
type language
['Ollanta Humala', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Ollanta_Humala property:native_language ?e }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q57254,P103,c(Q34770))
action filter_type
action find
entity Q57254
relation P103
type Q34770
The mother tongue of Ollanta Humala is the [ANSWER]
['Q57254', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q57254 property:P103 ?e }
Spanish
The mother tongue of Ollanta Humala is the Spanish
Spanish
action filter_type
action find
entity Ollanta Humala
relation native language
type language
['Ollanta Humala', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Ollanta_Humala property:native_language ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57254
P991
Q1076105
USER
Which general election was that person a successful candidate from ?
(c(Q1076105),P991,Q1321)
action filter_type
action find_reverse
entity Q57254
relation P991
type Q1076105
[{'concept': 'Q1076105'}, 'P991', 'Q1321']
SELECT DISTINCT ?t WHERE { ?t property:P991 resource:Q57254 . ?t rdf:type ontology:Q1076105 }
Ollanta Humala
action filter_type
action find_reverse
entity Ollanta Humala
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Spanish']
SELECT DISTINCT ?t WHERE { ?t property:successful_candidate resource:Ollanta_Humala . ?t rdf:type ontology:general_election }
[]
general election
Q41246
SYSTEM
Peruvian general election 2011
Q41246
(c(Q1076105),P991,Q1321)
action filter_type
action find_reverse
entity Q57254
relation P991
type Q1076105
[ANSWER] was that person a successful candidate from
[{'concept': 'Q1076105'}, 'P991', 'Q1321']
SELECT DISTINCT ?t WHERE { ?t property:P991 resource:Q57254 . ?t rdf:type ontology:Q1076105 }
Peruvian general election 2011
Peruvian general election 2011 was that person a successful candidate from
Peruvian general election 2011
action filter_type
action find_reverse
entity Ollanta Humala
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Spanish']
SELECT DISTINCT ?t WHERE { ?t property:successful_candidate resource:Ollanta_Humala . ?t rdf:type ontology:general_election }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41246
P17
Q15617994
USER
Which administrative territory is that general election present in ?
(Q41246,P17,c(Q15617994))
action filter_type
action find
entity Q41246
relation P17
type Q15617994
['Q41246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q41246 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Peruvian general election 2011
action filter_type
action find
entity Peruvian general election 2011
relation country
type designation for an administrative territorial entity
['Peruvian general election 2011', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Peruvian_general_election_2011 property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q41246,P17,c(Q15617994))
action filter_type
action find
entity Q41246
relation P17
type Q15617994
That general election is in [ANSWER]
['Q41246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q41246 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Peru
That general election is in Peru
Peru
action filter_type
action find
entity Peruvian general election 2011
relation country
type designation for an administrative territorial entity
['Peruvian general election 2011', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Peruvian_general_election_2011 property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
Which languages adopt exactly 1 alphabets and writing systems as the writing system ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?b rdf:type ?l } GROUP BY ?s } . FILTER ( ?v = 1 ) }
action equal
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?s WHERE { VALUES ( ?l ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?b rdf:type ?l } GROUP BY ?s } . FILTER ( ?v = 1 ) }
[]
alphabet writing system language
Q35499 Q1669994 Q33251
SYSTEM
Old Church Slavonic, Minoan language, Church Slavonic
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q8192))
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[ANSWERS] adopt exactly 1 alphabets and writing systems as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?b rdf:type ?l } GROUP BY ?s } . FILTER ( ?v = 1 ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
Old Church Slavonic, Minoan language and Church Slavonic adopt exactly 1 alphabets and writing systems as the writing system
Old Church Slavonic Minoan language Church Slavonic
action equal
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?s WHERE { VALUES ( ?l ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?b rdf:type ?l } GROUP BY ?s } . FILTER ( ?v = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q419
P361
Q2221906
USER
What is Peru a part of ?
(Q419,P361,c(Q2221906))
action filter_type
action find
entity Q419
relation P361
type Q2221906
['Q419', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q419 property:P361 ?g . ?g rdf:type ontology:Q2221906 }
Peru
action filter_type
action find
entity Peru
relation part of
type geographic location
['Peru', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:Peru property:part_of ?g . ?g rdf:type ontology:geographic_location }
[]
geographic location
Q12585
SYSTEM
Latin America
Q12585
(Q419,P361,c(Q2221906))
action filter_type
action find
entity Q419
relation P361
type Q2221906
Peru a part of is in [ANSWER]
['Q419', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { resource:Q419 property:P361 ?g . ?g rdf:type ontology:Q2221906 }
Latin America
Peru a part of is in Latin America
Latin America
action filter_type
action find
entity Peru
relation part of
type geographic location
['Peru', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { resource:Peru property:part_of ?g . ?g rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q12585 Q81462
P361
Q15617994
USER
Is Roscigno a part of that geographic location ?
(Q81462,P361,Q12585)
action is_in
entity Q81462
action find
entity Q12585
relation P361
['Q81462', 'P361', 'Q12585']
ASK WHERE { resource:Q12585 property:P361 resource:Q81462 }
Latin America Roscigno
action is_in
entity Roscigno
action find
entity Latin America
relation part of
['Roscigno', 'part of', 'Latin America']
ASK WHERE { resource:Latin_America property:part_of resource:Roscigno }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q81462,P361,Q12585)
action is_in
entity Q81462
action find
entity Q12585
relation P361
[ANSWER]
['Q81462', 'P361', 'Q12585']
ASK WHERE { resource:Q12585 property:P361 resource:Q81462 }
No
action is_in
entity Roscigno
action find
entity Latin America
relation part of
['Roscigno', 'part of', 'Latin America']
ASK WHERE { resource:Latin_America property:part_of resource:Roscigno }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q2221906 Q2342494 Q3305213
USER
Which geographic locations are expressed in atleast 9 collectables or paintings ?
(c(Q2342494)|c(Q3305213),P180,c(Q2221906))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q3305213
value 9
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?c WHERE { VALUES ( ?l ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?e rdf:type ?l } GROUP BY ?c } . FILTER ( ?w >= 9 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type collectable
action find_reverse_tuple_counts
relation depicts
type geographic location
type painting
value 9
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?c WHERE { VALUES ( ?l ) { ( ontology:collectable ) ( ontology:painting ) } . ?e rdf:type ?l } GROUP BY ?c } . FILTER ( ?w >= 9 ) }
[]
geographic location collectable painting
Q107679 Q8502
SYSTEM
cliff, mountain
Q107679 Q8502
(c(Q2342494)|c(Q3305213),P180,c(Q2221906))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q3305213
value 9
[ANSWERS] are expressed in atleast 9 collectables or paintings
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?c WHERE { VALUES ( ?l ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?e rdf:type ?l } GROUP BY ?c } . FILTER ( ?w >= 9 ) }
cliff mountain
Cliff and mountain are expressed in atleast 9 collectables or paintings
cliff mountain
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type collectable
action find_reverse_tuple_counts
relation depicts
type geographic location
type painting
value 9
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?c WHERE { VALUES ( ?l ) { ( ontology:collectable ) ( ontology:painting ) } . ?e rdf:type ?l } GROUP BY ?c } . FILTER ( ?w >= 9 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q107679 Q8502
P180
Q3305213
USER
Which paintings depict cliff and mountain ?
(c(Q3305213),P180,Q107679) (c(Q3305213),P180,Q8502)
action union
action filter_type
action find_reverse
entity Q107679
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q8502
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q107679'] [{'concept': 'Q3305213'}, 'P180', 'Q8502']
SELECT DISTINCT ?z WHERE { ?z property:P180 ?e . VALUES ( ?e ) { ( resource:Q107679 ) ( resource:Q8502 ) } }
cliff mountain
action union
action filter_type
action find_reverse
entity cliff
relation depicts
type painting
action filter_type
action find_reverse
entity mountain
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'cliff'] [{'concept': 'painting'}, 'depicts', 'mountain']
SELECT DISTINCT ?z WHERE { ?z property:depicts ?e . VALUES ( ?e ) { ( resource:cliff ) ( resource:mountain ) } }
[]
painting
Q25541602 Q549172 Q547923
SYSTEM
Le Toucher, Flight into Egypt, The Raising of Lazarus
Q22915359 Q22915358 Q22915343 Q22915364 Q22915360 Q22915397 Q22915384 Q22915388 Q22915269 Q22915276 Q22915279 Q22915409 Q22914506 Q25541602 Q20169799 Q549172 Q22915357 Q22915395 Q18691653 Q547923 Q18449375 Q19963602 Q20667114 Q19901158 Q18343248
(c(Q3305213),P180,Q107679) (c(Q3305213),P180,Q8502)
action union
action filter_type
action find_reverse
entity Q107679
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q8502
relation P180
type Q3305213
Le Toucher, flight into Egypt and The Raising of Lazarus depict cliff and mountain
[{'concept': 'Q3305213'}, 'P180', 'Q107679'] [{'concept': 'Q3305213'}, 'P180', 'Q8502']
SELECT DISTINCT ?z WHERE { ?z property:P180 ?e . VALUES ( ?e ) { ( resource:Q107679 ) ( resource:Q8502 ) } }
Rocky Coast Rocky Cliff with Stormy Sea, Cornwall Off the Coast of Cornwall Seascape Rocky Sea Coast Tower on the Cornish Coast Seascape with Two Figures: Tintagel, Cornwall, England The League Long Breakers Thundering on the Reef Cornwall Foggy Day Graycliff, the Artist's Home, Newport, Rhode Island View of the Artist's Home, Graycliff, Newport, Rhode Island Falls of the Passaic Le Toucher Moonlight on Mount Lafayette, New Hampshire Flight into Egypt River Valley in the Moonlight Torre de Schiavi Arroyo Hondo The Raising of Lazarus Autumn Berliner Hütte Yosemite Valley, California View of the Magnificent Ruins of the Ancient City of Paestum "Bourgeois" W---r, and His Squaw
Le Toucher, flight into Egypt and The Raising of Lazarus depict cliff and mountain
Le Toucher Flight into Egypt The Raising of Lazarus
action union
action filter_type
action find_reverse
entity cliff
relation depicts
type painting
action filter_type
action find_reverse
entity mountain
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'cliff'] [{'concept': 'painting'}, 'depicts', 'mountain']
SELECT DISTINCT ?z WHERE { ?z property:depicts ?e . VALUES ( ?e ) { ( resource:cliff ) ( resource:mountain ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q549172
P608
Q41176
USER
Which building was that painting exhibited at ?
(Q549172,P608,c(Q41176))
action filter_type
action find
entity Q549172
relation P608
type Q41176
['Q549172', 'P608', {'concept': 'Q41176'}]
SELECT DISTINCT ?t WHERE { resource:Q549172 property:P608 ?t . ?t rdf:type ontology:Q41176 }
Flight into Egypt
action filter_type
action find
entity Flight into Egypt
relation exhibition history
type building
['Flight into Egypt', 'exhibition history', {'concept': 'building'}]
SELECT DISTINCT ?t WHERE { resource:Flight_into_Egypt property:exhibition_history ?t . ?t rdf:type ontology:building }
[]
building
Clarification for simple ques.
Q547923
SYSTEM
Did you mean The Raising of Lazarus ?
Q25541602 Q549172 Q547923
(Q25541602,P608,c(Q41176)) (Q549172,P608,c(Q41176)) (Q547923,P608,c(Q41176))
[ANSWER]
['Q25541602', 'P608', {'concept': 'Q41176'}] ['Q549172', 'P608', {'concept': 'Q41176'}] ['Q547923', 'P608', {'concept': 'Q41176'}]
SELECT DISTINCT ?t WHERE { resource:Q549172 property:P608 ?t . ?t rdf:type ontology:Q41176 }
Le Toucher Flight into Egypt The Raising of Lazarus
Did you mean The Raising of Lazarus ?
The Raising of Lazarus
['Le Toucher', 'exhibition history', {'concept': 'building'}] ['Flight into Egypt', 'exhibition history', {'concept': 'building'}] ['The Raising of Lazarus', 'exhibition history', {'concept': 'building'}]
SELECT DISTINCT ?t WHERE { resource:Flight_into_Egypt property:exhibition_history ?t . ?t rdf:type ontology:building }
[]
Simple Question (Coreferenced)
USER
No, I meant Flight into Egypt. Could you tell me the answer for that?
(Q549172,P608,c(Q41176))
Q549172
['Q549172', 'P608', {'concept': 'Q41176'}]
['Flight into Egypt', 'exhibition history', {'concept': 'building'}]
[]
Q963954
SYSTEM
Scrovegni Chapel
Q963954
(Q549172,P608,c(Q41176))
action filter_type
action find
entity Q549172
relation P608
type Q41176
That painting was exhibited in [ANSWER]
['Q549172', 'P608', {'concept': 'Q41176'}]
SELECT DISTINCT ?t WHERE { resource:Q549172 property:P608 ?t . ?t rdf:type ontology:Q41176 }
Scrovegni Chapel
That painting was exhibited in Scrovegni Chapel
Scrovegni Chapel
action filter_type
action find
entity Flight into Egypt
relation exhibition history
type building
['Flight into Egypt', 'exhibition history', {'concept': 'building'}]
SELECT DISTINCT ?t WHERE { resource:Flight_into_Egypt property:exhibition_history ?t . ?t rdf:type ontology:building }
[]