Simple Question (Direct)
Simple Question
Q4310019
P937
Q515
USER
Which city is the work location of Johann Friedrich Müller ?
(Q4310019,P937,c(Q515))
action filter_type
action find
entity Q4310019
relation P937
type Q515
['Q4310019', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q4310019 property:P937 ?n . ?n rdf:type ontology:Q515 }
Johann Friedrich Müller
action filter_type
action find
entity Johann Friedrich Müller
relation work location
type city
['Johann Friedrich Müller', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Johann_Friedrich_Müller property:work_location ?n . ?n rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q4310019,P937,c(Q515))
action filter_type
action find
entity Q4310019
relation P937
type Q515
[ANSWER] is the work location of Johann Friedrich Müller
['Q4310019', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q4310019 property:P937 ?n . ?n rdf:type ontology:Q515 }
Dresden
Dresden is the work location of Johann Friedrich Müller
Dresden
action filter_type
action find
entity Johann Friedrich Müller
relation work location
type city
['Johann Friedrich Müller', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Johann_Friedrich_Müller property:work_location ?n . ?n rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4310019
P734
Q82799
USER
Who is associated with that person ?
(Q1731,P734,c(Q82799))
action filter_type
action find
entity Q4310019
relation P734
type Q82799
['Q1731', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q82799 . resource:Q4310019 property:P734 ?d }
Johann Friedrich Müller
action filter_type
action find
entity Johann Friedrich Müller
relation family name
type name
['Dresden', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:name . resource:Johann_Friedrich_Müller property:family_name ?d }
[]
name
Q8157228
SYSTEM
Müller
Q8157228
(Q1731,P734,c(Q82799))
action filter_type
action find
entity Q4310019
relation P734
type Q82799
[ANSWER] is associated with that person
['Q1731', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q82799 . resource:Q4310019 property:P734 ?d }
Müller
Müller is associated with that person
Müller
action filter_type
action find
entity Johann Friedrich Müller
relation family name
type name
['Dresden', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:name . resource:Johann_Friedrich_Müller property:family_name ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4310019
P21
Q290
USER
Which sex does that person belong to ?
(Q8157228,P21,c(Q290))
action filter_type
action find
entity Q4310019
relation P21
type Q290
['Q8157228', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q4310019 property:P21 ?i . ?i rdf:type ontology:Q290 }
Johann Friedrich Müller
action filter_type
action find
entity Johann Friedrich Müller
relation gender
type sex
['Müller', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Friedrich_Müller property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8157228,P21,c(Q290))
action filter_type
action find
entity Q4310019
relation P21
type Q290
That person belongs to [ANSWER]
['Q8157228', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q4310019 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Johann Friedrich Müller
relation gender
type sex
['Müller', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Friedrich_Müller property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q2141592 Q4310019
P21
Q290
USER
And also Reinhold Wolff
AND((Q4310019,P21,c(Q290)), (Q2141592,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q4310019
relation P21
action find
entity Q2141592
relation P21
type Q290
{'AND': [['Q4310019', 'P21', {'concept': 'Q290'}], ['Q2141592', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q4310019 property:P21 ?t . resource:Q2141592 property:P21 ?t }
Reinhold Wolff Johann Friedrich Müller
action filter_type
action intersection
action find
entity Johann Friedrich Müller
relation gender
action find
entity Reinhold Wolff
relation gender
type sex
{'AND': [['Johann Friedrich Müller', 'gender', {'concept': 'sex'}], ['Reinhold Wolff', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Johann_Friedrich_Müller property:gender ?t . resource:Reinhold_Wolff property:gender ?t }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q4310019,P21,c(Q290)), (Q2141592,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q4310019
relation P21
action find
entity Q2141592
relation P21
type Q290
[ANSWER]
{'AND': [['Q4310019', 'P21', {'concept': 'Q290'}], ['Q2141592', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q4310019 property:P21 ?t . resource:Q2141592 property:P21 ?t }
male
male
action filter_type
action intersection
action find
entity Johann Friedrich Müller
relation gender
action find
entity Reinhold Wolff
relation gender
type sex
{'AND': [['Johann Friedrich Müller', 'gender', {'concept': 'sex'}], ['Reinhold Wolff', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Johann_Friedrich_Müller property:gender ?t . resource:Reinhold_Wolff property:gender ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are the languages of work for atleast 67 names ?
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 67
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P407 ?v . ?f rdf:type ontology:Q82799 . ?v rdf:type ontology:Q34770 } GROUP BY ?v } . FILTER ( ?y >= 67 ) }
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 67
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:language_of_work_or_name ?v . ?f rdf:type ontology:name . ?v rdf:type ontology:language } GROUP BY ?v } . FILTER ( ?y >= 67 ) }
[]
language name
SYSTEM
2
Q1860 Q1321
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 67
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P407 ?v . ?f rdf:type ontology:Q82799 . ?v rdf:type ontology:Q34770 } GROUP BY ?v } . FILTER ( ?y >= 67 ) }
English Spanish
2
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 67
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:language_of_work_or_name ?v . ?f rdf:type ontology:name . ?v rdf:type ontology:language } GROUP BY ?v } . FILTER ( ?y >= 67 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18358083 Q4310019
P27
Q1048835
USER
Which political territories are the countries of citizenship of Johann Friedrich Müller or Bill Earle ?
OR((Q4310019,P27,c(Q1048835)), (Q18358083,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q4310019
relation P27
action find
entity Q18358083
relation P27
type Q1048835
{'OR': [['Q4310019', 'P27', {'concept': 'Q1048835'}], ['Q18358083', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q4310019 property:P27 ?q } UNION { resource:Q18358083 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
Bill Earle Johann Friedrich Müller
action filter_type
action union
action find
entity Johann Friedrich Müller
relation country of citizenship
action find
entity Bill Earle
relation country of citizenship
type political territorial entity
{'OR': [['Johann Friedrich Müller', 'country of citizenship', {'concept': 'political territorial entity'}], ['Bill Earle', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Johann_Friedrich_Müller property:country_of_citizenship ?q } UNION { resource:Bill_Earle property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q4310019,P27,c(Q1048835)), (Q18358083,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q4310019
relation P27
action find
entity Q18358083
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Johann Friedrich Müller or Bill Earle
{'OR': [['Q4310019', 'P27', {'concept': 'Q1048835'}], ['Q18358083', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q4310019 property:P27 ?q } UNION { resource:Q18358083 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are the countries of citizenship of Johann Friedrich Müller or Bill Earle
Australia Germany
action filter_type
action union
action find
entity Johann Friedrich Müller
relation country of citizenship
action find
entity Bill Earle
relation country of citizenship
type political territorial entity
{'OR': [['Johann Friedrich Müller', 'country of citizenship', {'concept': 'political territorial entity'}], ['Bill Earle', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Johann_Friedrich_Müller property:country_of_citizenship ?q } UNION { resource:Bill_Earle property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11413981
P27
Q502895
USER
Are Risako Yoshida a citizen of those political territories ?
(Q11413981,P27,Q408) (Q11413981,P27,Q183)
action is_in
entity prev_answer
action find
entity Q11413981
relation P27
['Q11413981', 'P27', 'Q408'] ['Q11413981', 'P27', 'Q183']
ASK WHERE { resource:Q11413981 property:P27 ?n . VALUES ( ?n ) { ( resource:Q408 ) ( resource:Q183 ) } }
Risako Yoshida
action is_in
entity prev_answer
action find
entity Risako Yoshida
relation country of citizenship
['Risako Yoshida', 'country of citizenship', 'Australia'] ['Risako Yoshida', 'country of citizenship', 'Germany']
ASK WHERE { resource:Risako_Yoshida property:country_of_citizenship ?n . VALUES ( ?n ) { ( resource:Australia ) ( resource:Germany ) } }
[]
common name
SYSTEM
NO
(Q11413981,P27,Q408) (Q11413981,P27,Q183)
action is_in
entity prev_answer
action find
entity Q11413981
relation P27
[ANSWER]
['Q11413981', 'P27', 'Q408'] ['Q11413981', 'P27', 'Q183']
ASK WHERE { resource:Q11413981 property:P27 ?n . VALUES ( ?n ) { ( resource:Q408 ) ( resource:Q183 ) } }
No
action is_in
entity prev_answer
action find
entity Risako Yoshida
relation country of citizenship
['Risako Yoshida', 'country of citizenship', 'Australia'] ['Risako Yoshida', 'country of citizenship', 'Germany']
ASK WHERE { resource:Risako_Yoshida property:country_of_citizenship ?n . VALUES ( ?n ) { ( resource:Australia ) ( resource:Germany ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4310019 Q2095552 Q183
P27
Q1048835
USER
Is Johann Friedrich Müller a native of Vilar de Figos and Germany ?
(Q4310019,P27,Q2095552) (Q4310019,P27,Q183)
action is_in
entity Q4310019
action intersection
action find_reverse
entity Q2095552
relation P27
action find_reverse
entity Q183
relation P27
['Q4310019', 'P27', 'Q2095552'] ['Q4310019', 'P27', 'Q183']
ASK WHERE { resource:Q4310019 property:P27 resource:Q2095552 . resource:Q4310019 property:P27 resource:Q183 }
Johann Friedrich Müller Vilar de Figos Germany
action is_in
entity Johann Friedrich Müller
action intersection
action find_reverse
entity Vilar de Figos
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Johann Friedrich Müller', 'country of citizenship', 'Vilar de Figos'] ['Johann Friedrich Müller', 'country of citizenship', 'Germany']
ASK WHERE { resource:Johann_Friedrich_Müller property:country_of_citizenship resource:Vilar_de_Figos . resource:Johann_Friedrich_Müller property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q4310019,P27,Q2095552) (Q4310019,P27,Q183)
action is_in
entity Q4310019
action intersection
action find_reverse
entity Q2095552
relation P27
action find_reverse
entity Q183
relation P27
[ANSWER]
['Q4310019', 'P27', 'Q2095552'] ['Q4310019', 'P27', 'Q183']
ASK WHERE { resource:Q4310019 property:P27 resource:Q2095552 . resource:Q4310019 property:P27 resource:Q183 }
NO and YES respectively
action is_in
entity Johann Friedrich Müller
action intersection
action find_reverse
entity Vilar de Figos
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Johann Friedrich Müller', 'country of citizenship', 'Vilar de Figos'] ['Johann Friedrich Müller', 'country of citizenship', 'Germany']
ASK WHERE { resource:Johann_Friedrich_Müller property:country_of_citizenship resource:Vilar_de_Figos . resource:Johann_Friedrich_Müller property:country_of_citizenship resource:Germany }
[]