Simple Question (Direct)
Simple Question
Q15407566
P27
Q15617994
USER
Which administrative territory is the native country of Umberto Chiacchio ?
(Q15407566,P27,c(Q15617994))
action filter_type
action find
entity Q15407566
relation P27
type Q15617994
['Q15407566', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15407566 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Umberto Chiacchio
action filter_type
action find
entity Umberto Chiacchio
relation country of citizenship
type designation for an administrative territorial entity
['Umberto Chiacchio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Umberto_Chiacchio property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q15407566,P27,c(Q15617994))
action filter_type
action find
entity Q15407566
relation P27
type Q15617994
[ANSWER] is the native country of Umberto Chiacchio
['Q15407566', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15407566 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Italy
Italy is the native country of Umberto Chiacchio
Italy
action filter_type
action find
entity Umberto Chiacchio
relation country of citizenship
type designation for an administrative territorial entity
['Umberto Chiacchio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Umberto_Chiacchio property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15407566
P1412
Q34770
USER
Which language can that person understand ?
(Q38,P1412,c(Q34770))
action filter_type
action find
entity Q15407566
relation P1412
type Q34770
['Q38', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q15407566 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Umberto Chiacchio
action filter_type
action find
entity Umberto Chiacchio
relation languages spoken, written or signed
type language
['Italy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Umberto_Chiacchio property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q38,P1412,c(Q34770))
action filter_type
action find
entity Q15407566
relation P1412
type Q34770
That person can understand [ANSWER]
['Q38', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q15407566 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Italian
That person can understand Italian
Italian
action filter_type
action find
entity Umberto Chiacchio
relation languages spoken, written or signed
type language
['Italy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Umberto_Chiacchio property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
Which languages are the first languages of more number of people than that language ?
(c(Q502895),P103,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find
entity Q652
relation P103
type Q34770
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q652 property:P103 ?s . ?s rdf:type ontology:Q34770 } } . FILTER ( ?d > ?b ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P103 ?x . ?x rdf:type ontology:Q34770 . ?k rdf:type ontology:Q502895 } GROUP BY ?x } }
action greater
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find
entity Italian
relation native language
type language
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Italian property:native_language ?s . ?s rdf:type ontology:language } } . FILTER ( ?d > ?b ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:native_language ?x . ?x rdf:type ontology:language . ?k rdf:type ontology:common_name } GROUP BY ?x } }
[]
language common name
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(c(Q502895),P103,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P103
type Q34770
type Q502895
action count
action filter_type
action find
entity Q652
relation P103
type Q34770
[ANSWERS] are the first languages of more number of people than that language
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q652 property:P103 ?s . ?s rdf:type ontology:Q34770 } } . FILTER ( ?d > ?b ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P103 ?x . ?x rdf:type ontology:Q34770 . ?k rdf:type ontology:Q502895 } GROUP BY ?x } }
English Spanish
English and Spanish are the first languages of more number of people than that language
English Spanish
action greater
action find_reverse_tuple_counts
relation native language
type language
type common name
action count
action filter_type
action find
entity Italian
relation native language
type language
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Italian property:native_language ?s . ?s rdf:type ontology:language } } . FILTER ( ?d > ?b ) . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:native_language ?x . ?x rdf:type ontology:language . ?k rdf:type ontology:common_name } GROUP BY ?x } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q8192 Q2001982 Q34770
USER
How many languages utilizes around the same number of writing systems or notations as the writing system as that language ?
(c(Q34770),P282,c(Q8192)|c(Q2001982))
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:Q8192 ?b } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 . ?x rdf:type ontology:Q2001982 }
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:writing_system ?b } . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system . ?x rdf:type ontology:notation }
[]
writing system notation language
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1860
SYSTEM
Did you mean English ?
(c(Q34770),P282,c(Q8192)|c(Q2001982))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:Q8192 ?b } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 . ?x rdf:type ontology:Q2001982 }
Did you mean English ?
English
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:writing_system ?b } . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system . ?x rdf:type ontology:notation }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Spanish. Could you tell me the answer for that?
(c(Q34770),P282,c(Q8192)|c(Q2001982))
Q1321
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
[]
SYSTEM
49
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192)|c(Q2001982))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q8192 ?y } UNION { ?z property:Q8192 ?x } } . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 . ?x rdf:type ontology:Q2001982 }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
49
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:writing_system ?y } UNION { ?z property:writing_system ?x } } . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system . ?x rdf:type ontology:notation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P137
Q3084961
USER
Which product lining is the administrator of Italy ?
(c(Q3084961),P137,Q38)
action filter_type
action find_reverse
entity Q38
relation P137
type Q3084961
[{'concept': 'Q3084961'}, 'P137', 'Q38']
SELECT DISTINCT ?d WHERE { ?d property:P137 resource:Q38 . ?d rdf:type ontology:Q3084961 }
Italy
action filter_type
action find_reverse
entity Italy
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Italy']
SELECT DISTINCT ?d WHERE { ?d property:operator resource:Italy . ?d rdf:type ontology:product_lining }
[]
product lining
Q151384
SYSTEM
Typhoon
Q151384
(c(Q3084961),P137,Q38)
action filter_type
action find_reverse
entity Q38
relation P137
type Q3084961
[ANSWER] is the administrator of Italy
[{'concept': 'Q3084961'}, 'P137', 'Q38']
SELECT DISTINCT ?d WHERE { ?d property:P137 resource:Q38 . ?d rdf:type ontology:Q3084961 }
Typhoon
Typhoon is the administrator of Italy
Typhoon
action filter_type
action find_reverse
entity Italy
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Italy']
SELECT DISTINCT ?d WHERE { ?d property:operator resource:Italy . ?d rdf:type ontology:product_lining }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q151384
P366
Q20027953
USER
What is the main use of that product lining ?
(Q151384,P366,c(Q20027953))
action filter_type
action find
entity Q151384
relation P366
type Q20027953
['Q151384', 'P366', {'concept': 'Q20027953'}]
SELECT DISTINCT ?w WHERE { resource:Q151384 property:P366 ?w . ?w rdf:type ontology:Q20027953 }
Typhoon
action filter_type
action find
entity Typhoon
relation use
type aircraft functional class
['Typhoon', 'use', {'concept': 'aircraft functional class'}]
SELECT DISTINCT ?w WHERE { resource:Typhoon property:use ?w . ?w rdf:type ontology:aircraft_functional_class }
[]
aircraft functional class
Q850403
SYSTEM
multirole combat aircraft
Q850403
(Q151384,P366,c(Q20027953))
action filter_type
action find
entity Q151384
relation P366
type Q20027953
The main use of that product lining is the [ANSWER]
['Q151384', 'P366', {'concept': 'Q20027953'}]
SELECT DISTINCT ?w WHERE { resource:Q151384 property:P366 ?w . ?w rdf:type ontology:Q20027953 }
multirole combat aircraft
The main use of that product lining is the multirole combat aircraft
multirole combat aircraft
action filter_type
action find
entity Typhoon
relation use
type aircraft functional class
['Typhoon', 'use', {'concept': 'aircraft functional class'}]
SELECT DISTINCT ?w WHERE { resource:Typhoon property:use ?w . ?w rdf:type ontology:aircraft_functional_class }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q635779
Q20027953
USER
And also tell me about Chengdu J-10?
(Q635779,P366,c(Q20027953))
action filter_type
action find
entity Q635779
relation P366
type Q20027953
['Q635779', 'P366', {'concept': 'Q20027953'}]
SELECT DISTINCT ?s WHERE { resource:Q635779 property:P366 ?s . ?s rdf:type ontology:Q20027953 }
Chengdu J-10
action filter_type
action find
entity Chengdu J-10
relation use
type aircraft functional class
['Chengdu J-10', 'use', {'concept': 'aircraft functional class'}]
SELECT DISTINCT ?s WHERE { resource:Chengdu_J-10 property:use ?s . ?s rdf:type ontology:aircraft_functional_class }
[]
aircraft functional class
Q850403
SYSTEM
multirole combat aircraft
Q850403
(Q635779,P366,c(Q20027953))
action filter_type
action find
entity Q635779
relation P366
type Q20027953
[ANSWER]
['Q635779', 'P366', {'concept': 'Q20027953'}]
SELECT DISTINCT ?s WHERE { resource:Q635779 property:P366 ?s . ?s rdf:type ontology:Q20027953 }
multirole combat aircraft
multirole combat aircraft
action filter_type
action find
entity Chengdu J-10
relation use
type aircraft functional class
['Chengdu J-10', 'use', {'concept': 'aircraft functional class'}]
SELECT DISTINCT ?s WHERE { resource:Chengdu_J-10 property:use ?s . ?s rdf:type ontology:aircraft_functional_class }
[]