Simple Question (Direct)
Simple Question
Q2664225
P734
Q82799
USER
Who is associated with Stanley Robinson ?
(Q2664225,P734,c(Q82799))
action filter_type
action find
entity Q2664225
relation P734
type Q82799
['Q2664225', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q2664225 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Stanley Robinson
action filter_type
action find
entity Stanley Robinson
relation family name
type name
['Stanley Robinson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Stanley_Robinson property:family_name ?p . ?p rdf:type ontology:name }
[]
name
Q2798428
SYSTEM
Robinson
Q2798428
(Q2664225,P734,c(Q82799))
action filter_type
action find
entity Q2664225
relation P734
type Q82799
[ANSWER] is associated with Stanley [ANSWER]
['Q2664225', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q2664225 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Robinson
Robinson is associated with Stanley Robinson
Robinson
action filter_type
action find
entity Stanley Robinson
relation family name
type name
['Stanley Robinson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Stanley_Robinson property:family_name ?p . ?p rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2798428
P407
Q34770
USER
Which language is that name in ?
(Q2798428,P407,c(Q34770))
action filter_type
action find
entity Q2798428
relation P407
type Q34770
['Q2798428', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q2798428 property:P407 ?x }
Robinson
action filter_type
action find
entity Robinson
relation language of work or name
type language
['Robinson', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Robinson property:language_of_work_or_name ?x }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2798428,P407,c(Q34770))
action filter_type
action find
entity Q2798428
relation P407
type Q34770
That is name in [ANSWER]
['Q2798428', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q2798428 property:P407 ?x }
English
That is name in English
English
action filter_type
action find
entity Robinson
relation language of work or name
type language
['Robinson', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Robinson property:language_of_work_or_name ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1933669
Q34770
USER
And also tell me about Hit Me Like a Man?
(Q1933669,P407,c(Q34770))
action filter_type
action find
entity Q1933669
relation P407
type Q34770
['Q1933669', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q1933669 property:P407 ?s . ?s rdf:type ontology:Q34770 }
Hit Me Like a Man
action filter_type
action find
entity Hit Me Like a Man
relation language of work or name
type language
['Hit Me Like a Man', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Hit_Me_Like_a_Man property:language_of_work_or_name ?s . ?s rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1933669,P407,c(Q34770))
action filter_type
action find
entity Q1933669
relation P407
type Q34770
[ANSWER]
['Q1933669', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q1933669 property:P407 ?s . ?s rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Hit Me Like a Man
relation language of work or name
type language
['Hit Me Like a Man', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Hit_Me_Like_a_Man property:language_of_work_or_name ?s . ?s rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q2397881 Q1346342
P361
Q5962346
USER
Is that language a part of Hindi languages and Anglic languages ?
(Q1860,P361,Q2397881) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q2397881
relation P361
action find_reverse
entity Q1346342
relation P361
['Q1860', 'P361', 'Q2397881'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q2397881 . resource:Q1860 property:P361 resource:Q1346342 }
English Hindi languages Anglic languages
action is_in
entity English
action intersection
action find_reverse
entity Hindi languages
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'Hindi languages'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Hindi_languages . resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
NO and YES respectively
(Q1860,P361,Q2397881) (Q1860,P361,Q1346342)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q2397881
relation P361
action find_reverse
entity Q1346342
relation P361
[ANSWER]
['Q1860', 'P361', 'Q2397881'] ['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q2397881 . resource:Q1860 property:P361 resource:Q1346342 }
NO and YES respectively
action is_in
entity English
action intersection
action find_reverse
entity Hindi languages
relation part of
action find_reverse
entity Anglic languages
relation part of
['English', 'part of', 'Hindi languages'] ['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Hindi_languages . resource:English property:part_of resource:Anglic_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2664225 Q26695053
P106
Q12737077
USER
Does Stanley Robinson do for a living mayor of Sayatón ?
(Q2664225,P106,Q26695053)
action is_in
entity Q26695053
action find
entity Q2664225
relation P106
['Q2664225', 'P106', 'Q26695053']
ASK WHERE { resource:Q2664225 property:P106 resource:Q26695053 }
Stanley Robinson mayor of Sayatón
action is_in
entity mayor of Sayatón
action find
entity Stanley Robinson
relation occupation
['Stanley Robinson', 'occupation', 'mayor of Sayatón']
ASK WHERE { resource:Stanley_Robinson property:occupation resource:mayor_of_Sayatón }
[]
occupation
SYSTEM
NO
(Q2664225,P106,Q26695053)
action is_in
entity Q26695053
action find
entity Q2664225
relation P106
[ANSWER]
['Q2664225', 'P106', 'Q26695053']
ASK WHERE { resource:Q2664225 property:P106 resource:Q26695053 }
No
action is_in
entity mayor of Sayatón
action find
entity Stanley Robinson
relation occupation
['Stanley Robinson', 'occupation', 'mayor of Sayatón']
ASK WHERE { resource:Stanley_Robinson property:occupation resource:mayor_of_Sayatón }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1687479 Q26695053
P19 P17
Q15617994
USER
Which administrative territories are mayor of Sayatón situated in or are the birthplace of Jenő Csaknády ?
OR((Q26695053,P17,c(Q15617994)), (Q1687479,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q26695053
relation P17
action find
entity Q1687479
relation P19
type Q15617994
{'OR': [['Q26695053', 'P17', {'concept': 'Q15617994'}], ['Q1687479', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1687479 property:P19 ?z } UNION { resource:Q26695053 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Jenő Csaknády mayor of Sayatón
action filter_type
action union
action find
entity mayor of Sayatón
relation country
action find
entity Jenő Csaknády
relation place of birth
type designation for an administrative territorial entity
{'OR': [['mayor of Sayatón', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jenő Csaknády', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jenő_Csaknády property:place_of_birth ?z } UNION { resource:mayor_of_Sayatón property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q29
SYSTEM
Hungary, Spain
Q28 Q29
OR((Q26695053,P17,c(Q15617994)), (Q1687479,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q26695053
relation P17
action find
entity Q1687479
relation P19
type Q15617994
[ANSWERS]
{'OR': [['Q26695053', 'P17', {'concept': 'Q15617994'}], ['Q1687479', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1687479 property:P19 ?z } UNION { resource:Q26695053 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Hungary Spain
Which administrative territories are mayor of Sayatón situated in or are the birthplace of Jenő Csaknády
Hungary Spain
action filter_type
action union
action find
entity mayor of Sayatón
relation country
action find
entity Jenő Csaknády
relation place of birth
type designation for an administrative territorial entity
{'OR': [['mayor of Sayatón', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jenő Csaknády', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jenő_Csaknády property:place_of_birth ?z } UNION { resource:mayor_of_Sayatón property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with atleast 54 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 54
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?u ) WHERE { ?i property:P530 ?y . ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?u >= 54 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?u ) WHERE { ?i property:diplomatic_relation ?y . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?u >= 54 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 54
[ANSWERS] have diplomatic relationships with atleast 54 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?u ) WHERE { ?i property:P530 ?y . ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?u >= 54 ) }
Brazil Italy
Brazil and Italy have diplomatic relationships with atleast 54 administrative territories
Brazil Italy
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?u ) WHERE { ?i property:diplomatic_relation ?y . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?u >= 54 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38
P47
Q56061
USER
Which administrative territory has an adjacent border with that administrative territory ?
(c(Q56061),P47,Q38)
action filter_type
action find
entity Q38
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q38']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q38 property:P47 ?r }
Italy
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Italy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Italy property:shares_border_with ?r }
[]
administrative territorial entity
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q155 Q38
(c(Q56061),P47,Q155) (c(Q56061),P47,Q38)
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q155'] [{'concept': 'Q56061'}, 'P47', 'Q38']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q38 property:P47 ?r }
Brazil Italy
Did you mean Italy ?
Italy
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Brazil'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Italy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Italy property:shares_border_with ?r }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q56061),P47,Q38)
[{'concept': 'Q56061'}, 'P47', 'Q38']
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Italy']
[]
Q237
SYSTEM
Vatican City
Q237
(c(Q56061),P47,Q38)
action filter_type
action find
entity Q38
relation P47
type Q56061
[ANSWER] has an adjacent border with that administrative territory
[{'concept': 'Q56061'}, 'P47', 'Q38']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q38 property:P47 ?r }
Vatican City
Vatican City has an adjacent border with that administrative territory
Vatican City
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Italy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Italy property:shares_border_with ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q237 Q450675
P551
Q502895
USER
Does Francis have residence at that administrative territory ?
(Q450675,P551,Q237)
action is_in
entity Q237
action find
entity Q450675
relation P551
['Q450675', 'P551', 'Q237']
ASK WHERE { resource:Q450675 property:P551 resource:Q237 }
Vatican City Francis
action is_in
entity Vatican City
action find
entity Francis
relation residence
['Francis', 'residence', 'Vatican City']
ASK WHERE { resource:Francis property:residence resource:Vatican_City }
[]
common name
SYSTEM
YES
(Q450675,P551,Q237)
action is_in
entity Q237
action find
entity Q450675
relation P551
[ANSWER]
['Q450675', 'P551', 'Q237']
ASK WHERE { resource:Q450675 property:P551 resource:Q237 }
Yes
action is_in
entity Vatican City
action find
entity Francis
relation residence
['Francis', 'residence', 'Vatican City']
ASK WHERE { resource:Francis property:residence resource:Vatican_City }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q237 Q408
P530
Q15617994
USER
How many administrative territories have ambassadorial relations with Vatican City and Australia ?
(c(Q15617994),P530,Q237) (c(Q15617994),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q237
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q408
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q237'] [{'concept': 'Q15617994'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P530 resource:Q408 . ?q property:P530 resource:Q237 . ?q rdf:type ontology:Q15617994 }
Vatican City Australia
action count
action intersection
action filter_type
action find_reverse
entity Vatican City
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Vatican City'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation resource:Australia . ?q property:diplomatic_relation resource:Vatican_City . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q230 Q801
(c(Q15617994),P530,Q237) (c(Q15617994),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q237
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q408
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q237'] [{'concept': 'Q15617994'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P530 resource:Q408 . ?q property:P530 resource:Q237 . ?q rdf:type ontology:Q15617994 }
Georgia Israel
2
action count
action intersection
action filter_type
action find_reverse
entity Vatican City
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Vatican City'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation resource:Australia . ?q property:diplomatic_relation resource:Vatican_City . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]