Simple Question (Direct)
Simple Question
Q371515
P21
Q290
USER
Which sex does Hiraku Nakajima belong to ?
(Q371515,P21,c(Q290))
action filter_type
action find
entity Q371515
relation P21
type Q290
['Q371515', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q371515 property:P21 ?m . ?m rdf:type ontology:Q290 }
Hiraku Nakajima
action filter_type
action find
entity Hiraku Nakajima
relation gender
type sex
['Hiraku Nakajima', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hiraku_Nakajima property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q371515,P21,c(Q290))
action filter_type
action find
entity Q371515
relation P21
type Q290
Hiraku Nakajima belongs to [ANSWER]
['Q371515', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q371515 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Hiraku Nakajima belongs to male
male
action filter_type
action find
entity Hiraku Nakajima
relation gender
type sex
['Hiraku Nakajima', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hiraku_Nakajima property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q371515
P166
Q618779
USER
What was received by Hiraku Nakajima ?
(Q371515,P166,c(Q618779))
action filter_type
action find
entity Q371515
relation P166
type Q618779
['Q371515', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q371515 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Hiraku Nakajima
action filter_type
action find
entity Hiraku Nakajima
relation award received
type award
['Hiraku Nakajima', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Hiraku_Nakajima property:award_received ?f . ?f rdf:type ontology:award }
[]
award
Q20826409
SYSTEM
Cole Prize in Algebra
Q20826409
(Q371515,P166,c(Q618779))
action filter_type
action find
entity Q371515
relation P166
type Q618779
The [ANSWER] was received by Hiraku Nakajima
['Q371515', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q371515 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Cole Prize in Algebra
The Cole Prize in Algebra was received by Hiraku Nakajima
Cole Prize in Algebra
action filter_type
action find
entity Hiraku Nakajima
relation award received
type award
['Hiraku Nakajima', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Hiraku_Nakajima property:award_received ?f . ?f rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q371515
P108
Q3918
USER
Which university is the employer of Hiraku Nakajima ?
(Q371515,P108,c(Q3918))
action filter_type
action find
entity Q371515
relation P108
type Q3918
['Q371515', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q3918 . resource:Q371515 property:P108 ?a }
Hiraku Nakajima
action filter_type
action find
entity Hiraku Nakajima
relation employer
type university
['Hiraku Nakajima', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:university . resource:Hiraku_Nakajima property:employer ?a }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q371515,P108,c(Q3918))
action filter_type
action find
entity Q371515
relation P108
type Q3918
Tokyo [ANSWER] is the employer of Hiraku Nakajima
['Q371515', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q3918 . resource:Q371515 property:P108 ?a }
University of Tokyo
Tokyo University of Tokyo is the employer of Hiraku Nakajima
University of Tokyo
action filter_type
action find
entity Hiraku Nakajima
relation employer
type university
['Hiraku Nakajima', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:university . resource:Hiraku_Nakajima property:employer ?a }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q371515
Q265662
USER
And which national university?
(Q371515,P108,c(Q265662))
action filter_type
action find
entity Q371515
relation P108
type Q265662
['Q371515', 'P108', {'concept': 'Q265662'}]
SELECT DISTINCT ?b WHERE { resource:Q371515 property:P108 ?b . ?b rdf:type ontology:Q265662 }
Hiraku Nakajima
action filter_type
action find
entity Hiraku Nakajima
relation employer
type national university
['Hiraku Nakajima', 'employer', {'concept': 'national university'}]
SELECT DISTINCT ?b WHERE { resource:Hiraku_Nakajima property:employer ?b . ?b rdf:type ontology:national_university }
[]
national university
Q336264
SYSTEM
Kyoto University
Q336264
(Q371515,P108,c(Q265662))
action filter_type
action find
entity Q371515
relation P108
type Q265662
[ANSWER]
['Q371515', 'P108', {'concept': 'Q265662'}]
SELECT DISTINCT ?b WHERE { resource:Q371515 property:P108 ?b . ?b rdf:type ontology:Q265662 }
Kyoto University
Kyoto University
action filter_type
action find
entity Hiraku Nakajima
relation employer
type national university
['Hiraku Nakajima', 'employer', {'concept': 'national university'}]
SELECT DISTINCT ?b WHERE { resource:Hiraku_Nakajima property:employer ?b . ?b rdf:type ontology:national_university }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5918085 Q371515
P19
Q56061
USER
Which administrative territories were Hiraku Nakajima or Seda Demir born in ?
OR((Q371515,P19,c(Q56061)), (Q5918085,P19,c(Q56061)))
action filter_type
action union
action find
entity Q371515
relation P19
action find
entity Q5918085
relation P19
type Q56061
{'OR': [['Q371515', 'P19', {'concept': 'Q56061'}], ['Q5918085', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q5918085 property:P19 ?c } UNION { resource:Q371515 property:P19 ?c } } . ?c rdf:type ontology:Q56061 }
Seda Demir Hiraku Nakajima
action filter_type
action union
action find
entity Hiraku Nakajima
relation place of birth
action find
entity Seda Demir
relation place of birth
type administrative territorial entity
{'OR': [['Hiraku Nakajima', 'place of birth', {'concept': 'administrative territorial entity'}], ['Seda Demir', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Seda_Demir property:place_of_birth ?c } UNION { resource:Hiraku_Nakajima property:place_of_birth ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490 Q406
SYSTEM
Tokyo, Istanbul
Q1490 Q406
OR((Q371515,P19,c(Q56061)), (Q5918085,P19,c(Q56061)))
action filter_type
action union
action find
entity Q371515
relation P19
action find
entity Q5918085
relation P19
type Q56061
Hiraku Nakajima or Seda Demir were born in [ANSWERS]
{'OR': [['Q371515', 'P19', {'concept': 'Q56061'}], ['Q5918085', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q5918085 property:P19 ?c } UNION { resource:Q371515 property:P19 ?c } } . ?c rdf:type ontology:Q56061 }
Tokyo Istanbul
Hiraku Nakajima or Seda Demir were born in Tokyo and Istanbul
Tokyo Istanbul
action filter_type
action union
action find
entity Hiraku Nakajima
relation place of birth
action find
entity Seda Demir
relation place of birth
type administrative territorial entity
{'OR': [['Hiraku Nakajima', 'place of birth', {'concept': 'administrative territorial entity'}], ['Seda Demir', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Seda_Demir property:place_of_birth ?c } UNION { resource:Hiraku_Nakajima property:place_of_birth ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5037647 Q371515
P27
Q15617994
USER
Which administrative territories are Hiraku Nakajima or Caralisa Monteiro an inhabitant of ?
OR((Q371515,P27,c(Q15617994)), (Q5037647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q371515
relation P27
action find
entity Q5037647
relation P27
type Q15617994
{'OR': [['Q371515', 'P27', {'concept': 'Q15617994'}], ['Q5037647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q371515 property:P27 ?o } UNION { resource:Q5037647 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Caralisa Monteiro Hiraku Nakajima
action filter_type
action union
action find
entity Hiraku Nakajima
relation country of citizenship
action find
entity Caralisa Monteiro
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hiraku Nakajima', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Caralisa Monteiro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Hiraku_Nakajima property:country_of_citizenship ?o } UNION { resource:Caralisa_Monteiro property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q668
SYSTEM
Japan, India
Q17 Q668
OR((Q371515,P27,c(Q15617994)), (Q5037647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q371515
relation P27
action find
entity Q5037647
relation P27
type Q15617994
Of [ANSWERS] are Hiraku Nakajima or Caralisa Monteiro an inhabitant of
{'OR': [['Q371515', 'P27', {'concept': 'Q15617994'}], ['Q5037647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q371515 property:P27 ?o } UNION { resource:Q5037647 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Japan India
Of Japan and India are Hiraku Nakajima or Caralisa Monteiro an inhabitant of
Japan India
action filter_type
action union
action find
entity Hiraku Nakajima
relation country of citizenship
action find
entity Caralisa Monteiro
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hiraku Nakajima', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Caralisa Monteiro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Hiraku_Nakajima property:country_of_citizenship ?o } UNION { resource:Caralisa_Monteiro property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q668
P138
Q355304
USER
Which watercourse is namesake of that administrative territory ?
(Q668,P138,c(Q355304))
action filter_type
action find
entity Q668
relation P138
type Q355304
['Q668', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q668 property:P138 ?x . ?x rdf:type ontology:Q355304 }
India
action filter_type
action find
entity India
relation named after
type watercourse
['India', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:India property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q668
SYSTEM
Did you mean India ?
Q17 Q668
(Q17,P138,c(Q355304)) (Q668,P138,c(Q355304))
[ANSWER]
['Q17', 'P138', {'concept': 'Q355304'}] ['Q668', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q668 property:P138 ?x . ?x rdf:type ontology:Q355304 }
Japan India
Did you mean India ?
India
['Japan', 'named after', {'concept': 'watercourse'}] ['India', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:India property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
Yes
(Q668,P138,c(Q355304))
['Q668', 'P138', {'concept': 'Q355304'}]
['India', 'named after', {'concept': 'watercourse'}]
[]
Q7348
SYSTEM
Indus River
Q7348
(Q668,P138,c(Q355304))
action filter_type
action find
entity Q668
relation P138
type Q355304
River [ANSWER] is namesake of that administrative territory
['Q668', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?x WHERE { resource:Q668 property:P138 ?x . ?x rdf:type ontology:Q355304 }
Indus River
River Indus River is namesake of that administrative territory
Indus River
action filter_type
action find
entity India
relation named after
type watercourse
['India', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?x WHERE { resource:India property:named_after ?x . ?x rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7348 Q965543
P403
Q355304
USER
Does Gilgit River ultimately merges into that one ?
(Q965543,P403,Q7348)
action is_in
entity Q7348
action find
entity Q965543
relation P403
['Q965543', 'P403', 'Q7348']
ASK WHERE { resource:Q965543 property:P403 resource:Q7348 }
Indus River Gilgit River
action is_in
entity Indus River
action find
entity Gilgit River
relation mouth of the watercourse
['Gilgit River', 'mouth of the watercourse', 'Indus River']
ASK WHERE { resource:Gilgit_River property:mouth_of_the_watercourse resource:Indus_River }
[]
watercourse
SYSTEM
YES
(Q965543,P403,Q7348)
action is_in
entity Q7348
action find
entity Q965543
relation P403
[ANSWER]
['Q965543', 'P403', 'Q7348']
ASK WHERE { resource:Q965543 property:P403 resource:Q7348 }
Yes
action is_in
entity Indus River
action find
entity Gilgit River
relation mouth of the watercourse
['Gilgit River', 'mouth of the watercourse', 'Indus River']
ASK WHERE { resource:Gilgit_River property:mouth_of_the_watercourse resource:Indus_River }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7348 Q4724434
P17
Q15617994
USER
How many administrative territories are Indus River or Alhambra Dinner Theatre located in ?
(Q7348,P17,c(Q15617994)) (Q4724434,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q7348
relation P17
type Q15617994
action filter_type
action find
entity Q4724434
relation P17
type Q15617994
['Q7348', 'P17', {'concept': 'Q15617994'}] ['Q4724434', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Q7348 property:P17 ?i . ?i rdf:type ontology:Q15617994 } UNION { resource:Q4724434 property:P17 ?i . ?i rdf:type ontology:Q15617994 } }
Indus River Alhambra Dinner Theatre
action count
action union
action filter_type
action find
entity Indus River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Alhambra Dinner Theatre
relation country
type designation for an administrative territorial entity
['Indus River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Alhambra Dinner Theatre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Indus_River property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Alhambra_Dinner_Theatre property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
4
Q843 Q148 Q30 Q668
(Q7348,P17,c(Q15617994)) (Q4724434,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q7348
relation P17
type Q15617994
action filter_type
action find
entity Q4724434
relation P17
type Q15617994
[ANSWER]
['Q7348', 'P17', {'concept': 'Q15617994'}] ['Q4724434', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Q7348 property:P17 ?i . ?i rdf:type ontology:Q15617994 } UNION { resource:Q4724434 property:P17 ?i . ?i rdf:type ontology:Q15617994 } }
Pakistan People's Republic of China United States of America India
4
action count
action union
action filter_type
action find
entity Indus River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Alhambra Dinner Theatre
relation country
type designation for an administrative territorial entity
['Indus River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Alhambra Dinner Theatre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { resource:Indus_River property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Alhambra_Dinner_Theatre property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7348
P276
Q1190554
USER
Which events have their location as that watercourse ?
action filter_type
action find_reverse
entity Q7348
relation P276
type Q1190554
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q7348 . ?v rdf:type ontology:Q1190554 }
Indus River
action filter_type
action find_reverse
entity Indus River
relation location
type event
SELECT DISTINCT ?v WHERE { ?v property:location resource:Indus_River . ?v rdf:type ontology:event }
[]
event
Q3269760 Q4872166
SYSTEM
Battle of Indus, Battle of Rasil
Q3269760 Q4872166
action filter_type
action find_reverse
entity Q7348
relation P276
type Q1190554
[ANSWERS] have their location as that watercourse
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q7348 . ?v rdf:type ontology:Q1190554 }
Battle of Indus Battle of Rasil
Battle of Indus and Battle of Rasil have their location as that watercourse
Battle of Indus Battle of Rasil
action filter_type
action find_reverse
entity Indus River
relation location
type event
SELECT DISTINCT ?v WHERE { ?v property:location resource:Indus_River . ?v rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q17
P463
Q43229
USER
How many organizations were Japan a member of ?
(Q17,P463,c(Q43229))
action count
action filter_type
action find
entity Q17
relation P463
type Q43229
['Q17', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q43229 . resource:Q17 property:P463 ?m }
Japan
action count
action filter_type
action find
entity Japan
relation member of
type organization
['Japan', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:organization . resource:Japan property:member_of ?m }
[]
organization
SYSTEM
8
Q340195 Q191384 Q899770 Q41550 Q656801 Q7825 Q170481 Q827525
(Q17,P463,c(Q43229))
action count
action filter_type
action find
entity Q17
relation P463
type Q43229
[ANSWER]
['Q17', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q43229 . resource:Q17 property:P463 ?m }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation World Trade Organization Asia-Pacific Economic Cooperation International Development Association
8
action count
action filter_type
action find
entity Japan
relation member of
type organization
['Japan', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:organization . resource:Japan property:member_of ?m }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1036
Q43229
USER
And what about Uganda?
(Q1036,P463,c(Q43229))
action count
action filter_type
action find
entity Q1036
relation P463
type Q43229
['Q1036', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q1036 property:P463 ?i . ?i rdf:type ontology:Q43229 }
Uganda
action count
action filter_type
action find
entity Uganda
relation member of
type organization
['Uganda', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Uganda property:member_of ?i . ?i rdf:type ontology:organization }
[]
organization
SYSTEM
6
(Q1036,P463,c(Q43229))
action count
action filter_type
action find
entity Q1036
relation P463
type Q43229
[ANSWER]
['Q1036', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q1036 property:P463 ?i . ?i rdf:type ontology:Q43229 }
6
action count
action filter_type
action find
entity Uganda
relation member of
type organization
['Uganda', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Uganda property:member_of ?i . ?i rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P6
Q502895
USER
Which person is the head of government of India ?
(Q668,P6,c(Q502895))
action filter_type
action find
entity Q668
relation P6
type Q502895
['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q668 property:P6 ?s . ?s rdf:type ontology:Q502895 }
India
action filter_type
action find
entity India
relation head of government
type common name
['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:India property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q1058
SYSTEM
Narendra Modi
Q1058
(Q668,P6,c(Q502895))
action filter_type
action find
entity Q668
relation P6
type Q502895
[ANSWER] is the head of government of India
['Q668', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q668 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Narendra Modi
Narendra Modi is the head of government of India
Narendra Modi
action filter_type
action find
entity India
relation head of government
type common name
['India', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:India property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]