Simple Question (Direct)
Simple Question
Q1613280
P607
Q350604
USER
What was the armed conflict that Hermann Pfister-Schwaighusen took part in
(Q1613280,P607,c(Q350604))
action filter_type
action find
entity Q1613280
relation P607
type Q350604
['Q1613280', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?i WHERE { resource:Q1613280 property:P607 ?i . ?i rdf:type ontology:Q350604 }
Hermann Pfister-Schwaighusen
action filter_type
action find
entity Hermann Pfister-Schwaighusen
relation conflict
type armed conflict
['Hermann Pfister-Schwaighusen', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?i WHERE { resource:Hermann_Pfister-Schwaighusen property:conflict ?i . ?i rdf:type ontology:armed_conflict }
[]
armed conflict
Q46083
SYSTEM
Franco-Prussian war
Q46083
(Q1613280,P607,c(Q350604))
action filter_type
action find
entity Q1613280
relation P607
type Q350604
The armed conflict that Hermann Pfister-Schwaighusen took part in was the [ANSWER]
['Q1613280', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?i WHERE { resource:Q1613280 property:P607 ?i . ?i rdf:type ontology:Q350604 }
Franco-Prussian war
The armed conflict that Hermann Pfister-Schwaighusen took part in was the Franco-Prussian war
Franco-Prussian war
action filter_type
action find
entity Hermann Pfister-Schwaighusen
relation conflict
type armed conflict
['Hermann Pfister-Schwaighusen', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?i WHERE { resource:Hermann_Pfister-Schwaighusen property:conflict ?i . ?i rdf:type ontology:armed_conflict }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46083
P1344
Q502895
USER
Who took part in that armed conflict ?
(c(Q502895),P1344,Q46083)
action filter_type
action find_reverse
entity Q46083
relation P1344
type Q502895
[{'concept': 'Q502895'}, 'P1344', 'Q46083']
SELECT DISTINCT ?p WHERE { ?p property:P1344 resource:Q46083 . ?p rdf:type ontology:Q502895 }
Franco-Prussian war
action filter_type
action find_reverse
entity Franco-Prussian war
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', 'Franco-Prussian war']
SELECT DISTINCT ?p WHERE { ?p property:participant_of resource:Franco-Prussian_war . ?p rdf:type ontology:common_name }
[]
common name
Q62428 Q96247
SYSTEM
Max von Gallwitz, Rudolf Böhm
Q62428 Q96247
(c(Q502895),P1344,Q46083)
action filter_type
action find_reverse
entity Q46083
relation P1344
type Q502895
[ANSWERS] took part in that armed conflict
[{'concept': 'Q502895'}, 'P1344', 'Q46083']
SELECT DISTINCT ?p WHERE { ?p property:P1344 resource:Q46083 . ?p rdf:type ontology:Q502895 }
Max von Gallwitz Rudolf Böhm
Max von Gallwitz and Rudolf Böhm took part in that armed conflict
Max von Gallwitz Rudolf Böhm
action filter_type
action find_reverse
entity Franco-Prussian war
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', 'Franco-Prussian war']
SELECT DISTINCT ?p WHERE { ?p property:participant_of resource:Franco-Prussian_war . ?p rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2034834 Q1613280
P19
Q515
USER
Which cities were Hermann Pfister-Schwaighusen or Ostara Körner born in ?
OR((Q1613280,P19,c(Q515)), (Q2034834,P19,c(Q515)))
action filter_type
action union
action find
entity Q1613280
relation P19
action find
entity Q2034834
relation P19
type Q515
{'OR': [['Q1613280', 'P19', {'concept': 'Q515'}], ['Q2034834', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1613280 property:P19 ?v } UNION { resource:Q2034834 property:P19 ?v } } . ?v rdf:type ontology:Q515 }
Ostara Körner Hermann Pfister-Schwaighusen
action filter_type
action union
action find
entity Hermann Pfister-Schwaighusen
relation place of birth
action find
entity Ostara Körner
relation place of birth
type city
{'OR': [['Hermann Pfister-Schwaighusen', 'place of birth', {'concept': 'city'}], ['Ostara Körner', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Hermann_Pfister-Schwaighusen property:place_of_birth ?v } UNION { resource:Ostara_Körner property:place_of_birth ?v } } . ?v rdf:type ontology:city }
[]
city
Q2865 Q2079
SYSTEM
Kassel, Leipzig
Q2865 Q2079
OR((Q1613280,P19,c(Q515)), (Q2034834,P19,c(Q515)))
action filter_type
action union
action find
entity Q1613280
relation P19
action find
entity Q2034834
relation P19
type Q515
Hermann Pfister-Schwaighusen or Ostara Körner were born in [ANSWERS]
{'OR': [['Q1613280', 'P19', {'concept': 'Q515'}], ['Q2034834', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1613280 property:P19 ?v } UNION { resource:Q2034834 property:P19 ?v } } . ?v rdf:type ontology:Q515 }
Kassel Leipzig
Hermann Pfister-Schwaighusen or Ostara Körner were born in Kassel and Leipzig
Kassel Leipzig
action filter_type
action union
action find
entity Hermann Pfister-Schwaighusen
relation place of birth
action find
entity Ostara Körner
relation place of birth
type city
{'OR': [['Hermann Pfister-Schwaighusen', 'place of birth', {'concept': 'city'}], ['Ostara Körner', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Hermann_Pfister-Schwaighusen property:place_of_birth ?v } UNION { resource:Ostara_Körner property:place_of_birth ?v } } . ?v rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P840
Q515 Q838948 Q166142
USER
How many cities are the narrative locations of around the same number of works of art or applications as that city ?
(c(Q838948)|c(Q166142),P840,c(Q515))
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:P840 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:narrative_location ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
city work of art application
Comparative|Count over More/Less|Mult. entity type|Clarification
Q2865
SYSTEM
Did you mean Kassel ?
(c(Q838948)|c(Q166142),P840,c(Q515))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:P840 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
Did you mean Kassel ?
Kassel
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:narrative_location ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Leipzig. Could you tell me the answer for that?
(c(Q838948)|c(Q166142),P840,c(Q515))
Q2079
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
[]
SYSTEM
55
Q1410 Q34261 Q2749 Q8684 Q2100 Q5690 Q1530 Q1641811 Q1794 Q456 Q386635 Q1519 Q5838 Q841125 Q66485 Q9005 Q14821 Q3852 Q1711 Q2337 Q6602 Q3870 Q3955 Q3838 Q16506 Q2833 Q1533 Q19660 Q19689 Q6582 Q2079 Q23768 Q1486 Q11194 Q34217 Q42622 Q3994 Q3572 Q2119 Q3616 Q3126 Q3004 Q1461 Q7473516 Q1854 Q2135 Q43196 Q235 Q17042 Q3692 Q2887 Q3014 Q1899 Q2978 Q2999
(c(Q838948)|c(Q166142),P840,c(Q515))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
Gibraltar Port-au-Prince Augsburg Seoul Duisburg Sparta Baghdad Mirotice Frankfurt Lyon Hikone Abu Dhabi Kabul Tsuyama Jaipur Brussels Coburg Worms Potsdam Smolensk Strasbourg Nairobi Weimar Kinshasa České Budějovice Freiburg im Breisgau Caracas Bucharest Tirana Carcassonne Leipzig Las Vegas Buenos Aires Sarajevo Oxford Suzhou Kempten Tunis Mannheim Tehran Erlangen Ingolstadt Manila Tokyo Ho Chi Minh City Winnipeg Cincinnati Monaco Oakland Riyadh Santiago Wolfsburg Kyiv Regensburg Würzburg
55
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q23035963 Q1613280
P27
Q1048835
USER
Which political territories are Hermann Pfister-Schwaighusen and Steffie Hübel an inhabitant of ?
AND((Q1613280,P27,c(Q1048835)), (Q23035963,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1613280
relation P27
action find
entity Q23035963
relation P27
type Q1048835
{'AND': [['Q1613280', 'P27', {'concept': 'Q1048835'}], ['Q23035963', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { resource:Q1613280 property:P27 ?e . resource:Q23035963 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Steffie Hübel Hermann Pfister-Schwaighusen
action filter_type
action intersection
action find
entity Hermann Pfister-Schwaighusen
relation country of citizenship
action find
entity Steffie Hübel
relation country of citizenship
type political territorial entity
{'AND': [['Hermann Pfister-Schwaighusen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Steffie Hübel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Hermann_Pfister-Schwaighusen property:country_of_citizenship ?e . resource:Steffie_Hübel property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1613280,P27,c(Q1048835)), (Q23035963,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1613280
relation P27
action find
entity Q23035963
relation P27
type Q1048835
[ANSWER] is Hermann Pfister-Schwaighusen and Steffie Hübel an inhabitant of
{'AND': [['Q1613280', 'P27', {'concept': 'Q1048835'}], ['Q23035963', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { resource:Q1613280 property:P27 ?e . resource:Q23035963 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Germany
Germany is Hermann Pfister-Schwaighusen and Steffie Hübel an inhabitant of
Germany
action filter_type
action intersection
action find
entity Hermann Pfister-Schwaighusen
relation country of citizenship
action find
entity Steffie Hübel
relation country of citizenship
type political territorial entity
{'AND': [['Hermann Pfister-Schwaighusen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Steffie Hübel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Hermann_Pfister-Schwaighusen property:country_of_citizenship ?e . resource:Steffie_Hübel property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q23035963 Q967413
P106
Q12737077
USER
How many occupations do Steffie Hübel or Nathaniel Kleitman do for a living ?
(Q23035963,P106,c(Q12737077)) (Q967413,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q23035963
relation P106
type Q12737077
action filter_type
action find
entity Q967413
relation P106
type Q12737077
['Q23035963', 'P106', {'concept': 'Q12737077'}] ['Q967413', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?m property:P106 ?x . VALUES ( ?m ) { ( resource:Q23035963 ) ( resource:Q967413 ) } }
Steffie Hübel Nathaniel Kleitman
action count
action union
action filter_type
action find
entity Steffie Hübel
relation occupation
type occupation
action filter_type
action find
entity Nathaniel Kleitman
relation occupation
type occupation
['Steffie Hübel', 'occupation', {'concept': 'occupation'}] ['Nathaniel Kleitman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?m property:occupation ?x . VALUES ( ?m ) { ( resource:Steffie_Hübel ) ( resource:Nathaniel_Kleitman ) } }
[]
occupation
SYSTEM
2
Q212980 Q1622272
(Q23035963,P106,c(Q12737077)) (Q967413,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q23035963
relation P106
type Q12737077
action filter_type
action find
entity Q967413
relation P106
type Q12737077
[ANSWER]
['Q23035963', 'P106', {'concept': 'Q12737077'}] ['Q967413', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?m property:P106 ?x . VALUES ( ?m ) { ( resource:Q23035963 ) ( resource:Q967413 ) } }
psychologist university teacher
2
action count
action union
action filter_type
action find
entity Steffie Hübel
relation occupation
type occupation
action filter_type
action find
entity Nathaniel Kleitman
relation occupation
type occupation
['Steffie Hübel', 'occupation', {'concept': 'occupation'}] ['Nathaniel Kleitman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?m property:occupation ?x . VALUES ( ?m ) { ( resource:Steffie_Hübel ) ( resource:Nathaniel_Kleitman ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23035963
P21
Q290
USER
Which sex does Steffie Hübel belong to ?
(Q23035963,P21,c(Q290))
action filter_type
action find
entity Q23035963
relation P21
type Q290
['Q23035963', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q23035963 property:P21 ?y . ?y rdf:type ontology:Q290 }
Steffie Hübel
action filter_type
action find
entity Steffie Hübel
relation gender
type sex
['Steffie Hübel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Steffie_Hübel property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q23035963,P21,c(Q290))
action filter_type
action find
entity Q23035963
relation P21
type Q290
Steffie Hübel belongs to [ANSWER]
['Q23035963', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q23035963 property:P21 ?y . ?y rdf:type ontology:Q290 }
female
Steffie Hübel belongs to female
female
action filter_type
action find
entity Steffie Hübel
relation gender
type sex
['Steffie Hübel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Steffie_Hübel property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581072
P180
Q3305213
USER
Which painting demonstrates that sex ?
(c(Q3305213),P180,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q6581072']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3305213 . ?i property:P180 resource:Q6581072 }
female
action filter_type
action find_reverse
entity female
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'female']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:painting . ?i property:depicts resource:female }
[]
painting
Q18346971
SYSTEM
Resurrection
Q18346971
(c(Q3305213),P180,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q3305213
[ANSWER] demonstrates that sex
[{'concept': 'Q3305213'}, 'P180', 'Q6581072']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3305213 . ?i property:P180 resource:Q6581072 }
Resurrection
Resurrection demonstrates that sex
Resurrection
action filter_type
action find_reverse
entity female
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'female']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:painting . ?i property:depicts resource:female }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18346971
P800
Q502895
USER
Which person is accredited with being the author of the notable work that painting ?
(c(Q502895),P800,Q18346971)
action filter_type
action find_reverse
entity Q18346971
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q18346971']
SELECT DISTINCT ?v WHERE { ?v property:P800 resource:Q18346971 . ?v rdf:type ontology:Q502895 }
Resurrection
action filter_type
action find_reverse
entity Resurrection
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Resurrection']
SELECT DISTINCT ?v WHERE { ?v property:notable_work resource:Resurrection . ?v rdf:type ontology:common_name }
[]
common name
Q3120087
SYSTEM
John La Farge
Q3120087
(c(Q502895),P800,Q18346971)
action filter_type
action find_reverse
entity Q18346971
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that painting
[{'concept': 'Q502895'}, 'P800', 'Q18346971']
SELECT DISTINCT ?v WHERE { ?v property:P800 resource:Q18346971 . ?v rdf:type ontology:Q502895 }
John La Farge
John La Farge is accredited with being the author of the notable work that painting
John La Farge
action filter_type
action find_reverse
entity Resurrection
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Resurrection']
SELECT DISTINCT ?v WHERE { ?v property:notable_work resource:Resurrection . ?v rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3120087 Q30
P27
Q15617994
USER
Does that person belong to United States of America ?
(Q3120087,P27,Q30)
action is_in
entity Q30
action find
entity Q3120087
relation P27
['Q3120087', 'P27', 'Q30']
ASK WHERE { resource:Q3120087 property:P27 resource:Q30 }
John La Farge United States of America
action is_in
entity United States of America
action find
entity John La Farge
relation country of citizenship
['John La Farge', 'country of citizenship', 'United States of America']
ASK WHERE { resource:John_La_Farge property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3120087,P27,Q30)
action is_in
entity Q30
action find
entity Q3120087
relation P27
[ANSWER]
['Q3120087', 'P27', 'Q30']
ASK WHERE { resource:Q3120087 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity John La Farge
relation country of citizenship
['John La Farge', 'country of citizenship', 'United States of America']
ASK WHERE { resource:John_La_Farge property:country_of_citizenship resource:United_States_of_America }
[]