Simple Question (Direct)
Simple Question
Q15621698
P39
Q12737077
USER
Which occupation was a position for which Martin Vogler was appointed ?
(Q15621698,P39,c(Q12737077))
action filter_type
action find
entity Q15621698
relation P39
type Q12737077
['Q15621698', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q15621698 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Martin Vogler
action filter_type
action find
entity Martin Vogler
relation position held
type occupation
['Martin Vogler', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Martin_Vogler property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q18510612
SYSTEM
Member of the Swiss National Council
Q18510612
(Q15621698,P39,c(Q12737077))
action filter_type
action find
entity Q15621698
relation P39
type Q12737077
[ANSWER] was a position for which Martin Vogler was appointed
['Q15621698', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q15621698 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Member of the Swiss National Council
Member of the Swiss National Council was a position for which Martin Vogler was appointed
Member of the Swiss National Council
action filter_type
action find
entity Martin Vogler
relation position held
type occupation
['Martin Vogler', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Martin_Vogler property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15621698
P102
Q7210356
USER
Which party does Martin Vogler belong to ?
(Q15621698,P102,c(Q7210356))
action filter_type
action find
entity Q15621698
relation P102
type Q7210356
['Q15621698', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q15621698 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Martin Vogler
action filter_type
action find
entity Martin Vogler
relation member of political party
type political organization
['Martin Vogler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Martin_Vogler property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q13850128
SYSTEM
Free Democratic Party of Switzerland
Q13850128
(Q15621698,P102,c(Q7210356))
action filter_type
action find
entity Q15621698
relation P102
type Q7210356
Martin Vogler belongs to [ANSWER]
['Q15621698', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q15621698 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Free Democratic Party of Switzerland
Martin Vogler belongs to Free Democratic Party of Switzerland
Free Democratic Party of Switzerland
action filter_type
action find
entity Martin Vogler
relation member of political party
type political organization
['Martin Vogler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Martin_Vogler property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q13850128 Q39
P17
Q15617994
USER
Is that political organization located in Switzerland ?
(Q13850128,P17,Q39)
action is_in
entity Q39
action find
entity Q13850128
relation P17
['Q13850128', 'P17', 'Q39']
ASK WHERE { resource:Q13850128 property:P17 resource:Q39 }
Free Democratic Party of Switzerland Switzerland
action is_in
entity Switzerland
action find
entity Free Democratic Party of Switzerland
relation country
['Free Democratic Party of Switzerland', 'country', 'Switzerland']
ASK WHERE { resource:Free_Democratic_Party_of_Switzerland property:country resource:Switzerland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q13850128,P17,Q39)
action is_in
entity Q39
action find
entity Q13850128
relation P17
[ANSWER]
['Q13850128', 'P17', 'Q39']
ASK WHERE { resource:Q13850128 property:P17 resource:Q39 }
Yes
action is_in
entity Switzerland
action find
entity Free Democratic Party of Switzerland
relation country
['Free Democratic Party of Switzerland', 'country', 'Switzerland']
ASK WHERE { resource:Free_Democratic_Party_of_Switzerland property:country resource:Switzerland }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15621698 Q7568182 Q39
P27
Q15617994
USER
Is Martin Vogler a native of South Pasadena Unified School District and Switzerland ?
(Q15621698,P27,Q7568182) (Q15621698,P27,Q39)
action is_in
entity Q15621698
action intersection
action find_reverse
entity Q7568182
relation P27
action find_reverse
entity Q39
relation P27
['Q15621698', 'P27', 'Q7568182'] ['Q15621698', 'P27', 'Q39']
ASK WHERE { resource:Q15621698 property:P27 resource:Q7568182 . resource:Q15621698 property:P27 resource:Q39 }
Martin Vogler South Pasadena Unified School District Switzerland
action is_in
entity Martin Vogler
action intersection
action find_reverse
entity South Pasadena Unified School District
relation country of citizenship
action find_reverse
entity Switzerland
relation country of citizenship
['Martin Vogler', 'country of citizenship', 'South Pasadena Unified School District'] ['Martin Vogler', 'country of citizenship', 'Switzerland']
ASK WHERE { resource:Martin_Vogler property:country_of_citizenship resource:South_Pasadena_Unified_School_District . resource:Martin_Vogler property:country_of_citizenship resource:Switzerland }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q15621698,P27,Q7568182) (Q15621698,P27,Q39)
action is_in
entity Q15621698
action intersection
action find_reverse
entity Q7568182
relation P27
action find_reverse
entity Q39
relation P27
[ANSWER]
['Q15621698', 'P27', 'Q7568182'] ['Q15621698', 'P27', 'Q39']
ASK WHERE { resource:Q15621698 property:P27 resource:Q7568182 . resource:Q15621698 property:P27 resource:Q39 }
NO and YES respectively
action is_in
entity Martin Vogler
action intersection
action find_reverse
entity South Pasadena Unified School District
relation country of citizenship
action find_reverse
entity Switzerland
relation country of citizenship
['Martin Vogler', 'country of citizenship', 'South Pasadena Unified School District'] ['Martin Vogler', 'country of citizenship', 'Switzerland']
ASK WHERE { resource:Martin_Vogler property:country_of_citizenship resource:South_Pasadena_Unified_School_District . resource:Martin_Vogler property:country_of_citizenship resource:Switzerland }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1697410 Q15621698
P937
Q56061
USER
Which administrative territories did Martin Vogler or Johannes Dietlein work ?
OR((Q15621698,P937,c(Q56061)), (Q1697410,P937,c(Q56061)))
action filter_type
action union
action find
entity Q15621698
relation P937
action find
entity Q1697410
relation P937
type Q56061
{'OR': [['Q15621698', 'P937', {'concept': 'Q56061'}], ['Q1697410', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?d ) { ( resource:Q1697410 ) ( resource:Q15621698 ) } . ?d property:P937 ?o } . ?o rdf:type ontology:Q56061 }
Johannes Dietlein Martin Vogler
action filter_type
action union
action find
entity Martin Vogler
relation work location
action find
entity Johannes Dietlein
relation work location
type administrative territorial entity
{'OR': [['Martin Vogler', 'work location', {'concept': 'administrative territorial entity'}], ['Johannes Dietlein', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?d ) { ( resource:Johannes_Dietlein ) ( resource:Martin_Vogler ) } . ?d property:work_location ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365 Q1718 Q586 Q70
SYSTEM
Cologne, Düsseldorf, Bonn, Bern
Q365 Q1718 Q586 Q70
OR((Q15621698,P937,c(Q56061)), (Q1697410,P937,c(Q56061)))
action filter_type
action union
action find
entity Q15621698
relation P937
action find
entity Q1697410
relation P937
type Q56061
Martin Vogler or Johannes Dietlein worked in [ANSWERS]
{'OR': [['Q15621698', 'P937', {'concept': 'Q56061'}], ['Q1697410', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?d ) { ( resource:Q1697410 ) ( resource:Q15621698 ) } . ?d property:P937 ?o } . ?o rdf:type ontology:Q56061 }
Cologne Düsseldorf Bonn Bern
Martin Vogler or Johannes Dietlein worked in Cologne, Düsseldorf, Bonn and Bern
Cologne Düsseldorf Bonn Bern
action filter_type
action union
action find
entity Martin Vogler
relation work location
action find
entity Johannes Dietlein
relation work location
type administrative territorial entity
{'OR': [['Martin Vogler', 'work location', {'concept': 'administrative territorial entity'}], ['Johannes Dietlein', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?d ) { ( resource:Johannes_Dietlein ) ( resource:Martin_Vogler ) } . ?d property:work_location ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q515
USER
How many cities are twin towns of that administrative territory ?
(Q586,P190,c(Q515))
['Q586', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
['Bonn', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Quantitative|Count|Single entity type|Clarification
Q70
SYSTEM
Did you mean Bern ?
(Q365,P190,c(Q515)) (Q1718,P190,c(Q515)) (Q586,P190,c(Q515)) (Q70,P190,c(Q515))
[ANSWER]
['Q365', 'P190', {'concept': 'Q515'}] ['Q1718', 'P190', {'concept': 'Q515'}] ['Q586', 'P190', {'concept': 'Q515'}] ['Q70', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Did you mean Bern ?
Bern
['Cologne', 'sister city', {'concept': 'city'}] ['Düsseldorf', 'sister city', {'concept': 'city'}] ['Bonn', 'sister city', {'concept': 'city'}] ['Bern', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:sister_city ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Bonn. Could you tell me the answer for that?
(Q586,P190,c(Q515))
Q586
['Q586', 'P190', {'concept': 'Q515'}]
['Bonn', 'sister city', {'concept': 'city'}]
[]
SYSTEM
5
Q34217 Q485581 Q1711 Q221283 Q7568
(Q586,P190,c(Q515))
[ANSWER]
['Q586', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q892680 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Oxford Aveiro Potsdam Cape Coast Yogyakarta
5
['Bonn', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bonn property:sister_city ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q365 Q595667
P127
Q7743
USER
How many homes belongs to Cologne or Clan Donald ?
(c(Q7743),P127,Q365) (c(Q7743),P127,Q595667)
action count
action union
action filter_type
action find_reverse
entity Q365
relation P127
type Q7743
action filter_type
action find_reverse
entity Q595667
relation P127
type Q7743
[{'concept': 'Q7743'}, 'P127', 'Q365'] [{'concept': 'Q7743'}, 'P127', 'Q595667']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P127 ?j . VALUES ( ?j ) { ( resource:Q595667 ) ( resource:Q365 ) } }
Cologne Clan Donald
action count
action union
action filter_type
action find_reverse
entity Cologne
relation owned by
type home
action filter_type
action find_reverse
entity Clan Donald
relation owned by
type home
[{'concept': 'home'}, 'owned by', 'Cologne'] [{'concept': 'home'}, 'owned by', 'Clan Donald']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:owned_by ?j . VALUES ( ?j ) { ( resource:Clan_Donald ) ( resource:Cologne ) } }
[]
home
SYSTEM
2
Q676462 Q2968118
(c(Q7743),P127,Q365) (c(Q7743),P127,Q595667)
action count
action union
action filter_type
action find_reverse
entity Q365
relation P127
type Q7743
action filter_type
action find_reverse
entity Q595667
relation P127
type Q7743
[ANSWER]
[{'concept': 'Q7743'}, 'P127', 'Q365'] [{'concept': 'Q7743'}, 'P127', 'Q595667']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P127 ?j . VALUES ( ?j ) { ( resource:Q595667 ) ( resource:Q365 ) } }
Armadale Castle Ardtornish Castle
2
action count
action union
action filter_type
action find_reverse
entity Cologne
relation owned by
type home
action filter_type
action find_reverse
entity Clan Donald
relation owned by
type home
[{'concept': 'home'}, 'owned by', 'Cologne'] [{'concept': 'home'}, 'owned by', 'Clan Donald']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:owned_by ?j . VALUES ( ?j ) { ( resource:Clan_Donald ) ( resource:Cologne ) } }
[]