Simple Question (Direct)
Simple Question
Q11425253
P21
Q290
USER
What is the sex of Tarō Sakamoto ?
(Q11425253,P21,c(Q290))
action filter_type
action find
entity Q11425253
relation P21
type Q290
['Q11425253', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q11425253 property:P21 ?r . ?r rdf:type ontology:Q290 }
Tarō Sakamoto
action filter_type
action find
entity Tarō Sakamoto
relation gender
type sex
['Tarō Sakamoto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Tarō_Sakamoto property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11425253,P21,c(Q290))
action filter_type
action find
entity Q11425253
relation P21
type Q290
The sex of Tarō Sakamoto is the [ANSWER]
['Q11425253', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q11425253 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of Tarō Sakamoto is the male
male
action filter_type
action find
entity Tarō Sakamoto
relation gender
type sex
['Tarō Sakamoto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Tarō_Sakamoto property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11425253
P734
Q82799
USER
Who is associated with that person ?
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q11425253
relation P734
type Q82799
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11425253 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Tarō Sakamoto
action filter_type
action find
entity Tarō Sakamoto
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Tarō_Sakamoto property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q21448555
SYSTEM
Sakamoto
Q21448555
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q11425253
relation P734
type Q82799
[ANSWER] is associated with that person
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q11425253 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Sakamoto
Sakamoto is associated with that person
Sakamoto
action filter_type
action find
entity Tarō Sakamoto
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Tarō_Sakamoto property:family_name ?f . ?f rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for around 39 names ?
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 39
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P407 ?a . ?a rdf:type ontology:Q34770 . ?t rdf:type ontology:Q82799 } GROUP BY ?a } . FILTER ( ?k = 39 ) }
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 39
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?t rdf:type ontology:name } GROUP BY ?a } . FILTER ( ?k = 39 ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 39
[ANSWERS] are the languages of work for around 39 names
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P407 ?a . ?a rdf:type ontology:Q34770 . ?t rdf:type ontology:Q82799 } GROUP BY ?a } . FILTER ( ?k = 39 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around 39 names
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 39
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?t rdf:type ontology:name } GROUP BY ?a } . FILTER ( ?k = 39 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q447117 Q35499 Q35726
P1412
Q502895
USER
Who talks in those languages ?
(c(Q502895),P1412,Q447117) (c(Q502895),P1412,Q35499) (c(Q502895),P1412,Q35726)
action filter_type
action find_reverse
entity prev_answer
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q447117'] [{'concept': 'Q502895'}, 'P1412', 'Q35499'] [{'concept': 'Q502895'}, 'P1412', 'Q35726']
SELECT DISTINCT ?w WHERE { ?w property:P1412 ?h . VALUES ( ?h ) { ( resource:Q132659 ) ( resource:Q18130932 ) ( resource:Q13414913 ) } . ?w rdf:type ontology:Q502895 }
Old Egyptian Old Church Slavonic Etruscan
action filter_type
action find_reverse
entity prev_answer
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Egyptian'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Etruscan']
SELECT DISTINCT ?w WHERE { ?w property:languages_spoken,_written_or_signed ?h . VALUES ( ?h ) { ( resource:Egyptian_hieroglyphs ) ( resource:Traditional_Chinese ) ( resource:Simplified_Chinese ) } . ?w rdf:type ontology:common_name }
[]
common name
Q1162154 Q1736643 Q723304
SYSTEM
Daniel Polz, Katja Lembke, Gregory Tsamblak
Q15815525 Q1736643 Q1162154 Q650558 Q723304 Q1146725 Q3420417 Q385810 Q3523507 Q21580476 Q21580468 Q2874426 Q21584309 Q21584304 Q21584282 Q21580487 Q3564047
(c(Q502895),P1412,Q447117) (c(Q502895),P1412,Q35499) (c(Q502895),P1412,Q35726)
action filter_type
action find_reverse
entity prev_answer
relation P1412
type Q502895
[ANSWERS] talk in those languages
[{'concept': 'Q502895'}, 'P1412', 'Q447117'] [{'concept': 'Q502895'}, 'P1412', 'Q35499'] [{'concept': 'Q502895'}, 'P1412', 'Q35726']
SELECT DISTINCT ?w WHERE { ?w property:P1412 ?h . VALUES ( ?h ) { ( resource:Q132659 ) ( resource:Q18130932 ) ( resource:Q13414913 ) } . ?w rdf:type ontology:Q502895 }
Hi Katja Lembke Daniel Polz John Exarch Gregory Tsamblak Constantine of Preslav Ravnthu Thefrinai Lars Tolumnius Thefarie Velianas Unknown brother of Velthur Spurinna Larth Spurinna Avie Spurinna Laris Partunus Velthur Partunus Lars Pulena Arnth Velcha Velia Spurinna
Daniel Polz, Katja Lembke and Gregory Tsamblak talk in those languages
Daniel Polz Katja Lembke Gregory Tsamblak
action filter_type
action find_reverse
entity prev_answer
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Egyptian'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Etruscan']
SELECT DISTINCT ?w WHERE { ?w property:languages_spoken,_written_or_signed ?h . VALUES ( ?h ) { ( resource:Egyptian_hieroglyphs ) ( resource:Traditional_Chinese ) ( resource:Simplified_Chinese ) } . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1736643
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q1736643,P27,c(Q1048835))
action filter_type
action find
entity Q1736643
relation P27
type Q1048835
['Q1736643', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q1736643 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Katja Lembke
action filter_type
action find
entity Katja Lembke
relation country of citizenship
type political territorial entity
['Katja Lembke', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Katja_Lembke property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q1162154
SYSTEM
Did you mean Daniel Polz ?
Q1162154 Q1736643 Q723304
(Q1162154,P27,c(Q1048835)) (Q1736643,P27,c(Q1048835)) (Q723304,P27,c(Q1048835))
[ANSWER]
['Q1162154', 'P27', {'concept': 'Q1048835'}] ['Q1736643', 'P27', {'concept': 'Q1048835'}] ['Q723304', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q1736643 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Daniel Polz Katja Lembke Gregory Tsamblak
Did you mean Daniel Polz ?
Daniel Polz
['Daniel Polz', 'country of citizenship', {'concept': 'political territorial entity'}] ['Katja Lembke', 'country of citizenship', {'concept': 'political territorial entity'}] ['Gregory Tsamblak', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Katja_Lembke property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Katja Lembke. Could you tell me the answer for that?
(Q1736643,P27,c(Q1048835))
Q1736643
['Q1736643', 'P27', {'concept': 'Q1048835'}]
['Katja Lembke', 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q1736643,P27,c(Q1048835))
action filter_type
action find
entity Q1736643
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q1736643', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q1736643 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Katja Lembke
relation country of citizenship
type political territorial entity
['Katja Lembke', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Katja_Lembke property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q12391192
P27
Q502895
USER
Is José de la Torre Moreiras a citizen of that political territory ?
(Q12391192,P27,Q183)
action is_in
entity Q12391192
action find
entity Q183
relation P27
['Q12391192', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q12391192 }
Germany José de la Torre Moreiras
action is_in
entity José de la Torre Moreiras
action find
entity Germany
relation country of citizenship
['José de la Torre Moreiras', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:José_de_la_Torre_Moreiras }
[]
common name
SYSTEM
NO
(Q12391192,P27,Q183)
action is_in
entity Q12391192
action find
entity Q183
relation P27
[ANSWER]
['Q12391192', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q12391192 }
No
action is_in
entity José de la Torre Moreiras
action find
entity Germany
relation country of citizenship
['José de la Torre Moreiras', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:José_de_la_Torre_Moreiras }
[]