Simple Question (Direct)
Simple Question
Q1289642
P102
Q7210356
USER
Which party does Margarete Weinhandl belong to ?
(Q1289642,P102,c(Q7210356))
action filter_type
action find
entity Q1289642
relation P102
type Q7210356
['Q1289642', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q1289642 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Margarete Weinhandl
action filter_type
action find
entity Margarete Weinhandl
relation member of political party
type political organization
['Margarete Weinhandl', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Margarete_Weinhandl property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q1289642,P102,c(Q7210356))
action filter_type
action find
entity Q1289642
relation P102
type Q7210356
Margarete Weinhandl belongs to [ANSWER]
['Q1289642', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q1289642 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Nazi Party
Margarete Weinhandl belongs to Nazi Party
Nazi Party
action filter_type
action find
entity Margarete Weinhandl
relation member of political party
type political organization
['Margarete Weinhandl', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Margarete_Weinhandl property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1289642
P19
Q56061
USER
Which administrative territory is the place of birth of Margarete Weinhandl ?
(Q1289642,P19,c(Q56061))
action filter_type
action find
entity Q1289642
relation P19
type Q56061
['Q1289642', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1289642 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Margarete Weinhandl
action filter_type
action find
entity Margarete Weinhandl
relation place of birth
type administrative territorial entity
['Margarete Weinhandl', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Margarete_Weinhandl property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1012
SYSTEM
Celje
Q1012
(Q1289642,P19,c(Q56061))
action filter_type
action find
entity Q1289642
relation P19
type Q56061
[ANSWER] is the place of birth of Margarete Weinhandl
['Q1289642', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1289642 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Celje
Celje is the place of birth of Margarete Weinhandl
Celje
action filter_type
action find
entity Margarete Weinhandl
relation place of birth
type administrative territorial entity
['Margarete Weinhandl', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Margarete_Weinhandl property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7320
P159
Q56061
USER
Which administrative territory is the headquarter location of Nazi Party ?
(Q7320,P159,c(Q56061))
action filter_type
action find
entity Q7320
relation P159
type Q56061
['Q7320', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7320 property:P159 ?h . ?h rdf:type ontology:Q56061 }
Nazi Party
action filter_type
action find
entity Nazi Party
relation headquarters location
type administrative territorial entity
['Nazi Party', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Nazi_Party property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q7320,P159,c(Q56061))
action filter_type
action find
entity Q7320
relation P159
type Q56061
[ANSWER] is the headquarter location of Nazi Party
['Q7320', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7320 property:P159 ?h . ?h rdf:type ontology:Q56061 }
Munich
Munich is the headquarter location of Nazi Party
Munich
action filter_type
action find
entity Nazi Party
relation headquarters location
type administrative territorial entity
['Nazi Party', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Nazi_Party property:headquarters_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1726 Q1899 Q276042
P190
Q515
USER
Is that administrative territory twin city of Kyiv and Băneasa ?
(Q1726,P190,Q1899) (Q1726,P190,Q276042)
action is_in
entity Q1726
action intersection
action find_reverse
entity Q1899
relation P190
action find_reverse
entity Q276042
relation P190
['Q1726', 'P190', 'Q1899'] ['Q1726', 'P190', 'Q276042']
ASK WHERE { resource:Q1726 property:P190 resource:Q1899 . resource:Q1726 property:P190 resource:Q276042 }
Munich Kyiv Băneasa
action is_in
entity Munich
action intersection
action find_reverse
entity Kyiv
relation sister city
action find_reverse
entity Băneasa
relation sister city
['Munich', 'sister city', 'Kyiv'] ['Munich', 'sister city', 'Băneasa']
ASK WHERE { resource:Munich property:sister_city resource:Kyiv . resource:Munich property:sister_city resource:Băneasa }
[]
city
SYSTEM
YES and NO respectively
(Q1726,P190,Q1899) (Q1726,P190,Q276042)
action is_in
entity Q1726
action intersection
action find_reverse
entity Q1899
relation P190
action find_reverse
entity Q276042
relation P190
[ANSWER]
['Q1726', 'P190', 'Q1899'] ['Q1726', 'P190', 'Q276042']
ASK WHERE { resource:Q1726 property:P190 resource:Q1899 . resource:Q1726 property:P190 resource:Q276042 }
YES and NO respectively
action is_in
entity Munich
action intersection
action find_reverse
entity Kyiv
relation sister city
action find_reverse
entity Băneasa
relation sister city
['Munich', 'sister city', 'Kyiv'] ['Munich', 'sister city', 'Băneasa']
ASK WHERE { resource:Munich property:sister_city resource:Kyiv . resource:Munich property:sister_city resource:Băneasa }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q188894 Q1726
P1376
Q7275
USER
Which states have Munich or Kütahya as their county seat ?
OR((Q1726,P1376,c(Q7275)), (Q188894,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1726
relation P1376
action find
entity Q188894
relation P1376
type Q7275
{'OR': [['Q1726', 'P1376', {'concept': 'Q7275'}], ['Q188894', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1726 property:P1376 ?b } UNION { resource:Q188894 property:P1376 ?b } } . ?b rdf:type ontology:Q7275 }
Kütahya Munich
action filter_type
action union
action find
entity Munich
relation capital of
action find
entity Kütahya
relation capital of
type state
{'OR': [['Munich', 'capital of', {'concept': 'state'}], ['Kütahya', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Munich property:capital_of ?b } UNION { resource:Kütahya property:capital_of ?b } } . ?b rdf:type ontology:state }
[]
state
Q1324889 Q154195 Q980
SYSTEM
Germiyanids, Kingdom of Bavaria, Bavaria
Q1324889 Q154195 Q980
OR((Q1726,P1376,c(Q7275)), (Q188894,P1376,c(Q7275)))
action filter_type
action union
action find
entity Q1726
relation P1376
action find
entity Q188894
relation P1376
type Q7275
[ANSWERS] have Munich or Kütahya as their county seat
{'OR': [['Q1726', 'P1376', {'concept': 'Q7275'}], ['Q188894', 'P1376', {'concept': 'Q7275'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1726 property:P1376 ?b } UNION { resource:Q188894 property:P1376 ?b } } . ?b rdf:type ontology:Q7275 }
Germiyanids Kingdom of Bavaria Bavaria
Germiyanids, Kingdom of Bavaria and Bavaria have Munich or Kütahya as their county seat
Germiyanids Kingdom of Bavaria Bavaria
action filter_type
action union
action find
entity Munich
relation capital of
action find
entity Kütahya
relation capital of
type state
{'OR': [['Munich', 'capital of', {'concept': 'state'}], ['Kütahya', 'capital of', {'concept': 'state'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Munich property:capital_of ?b } UNION { resource:Kütahya property:capital_of ?b } } . ?b rdf:type ontology:state }
[]
Clarification
Simple Question|Single Entity|Indirect
Q154195
P36
Q56061
USER
Which administrative territory is called the capital of that state ?
(Q154195,P36,c(Q56061))
action filter_type
action find
entity Q154195
relation P36
type Q56061
['Q154195', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q154195 property:P36 ?t }
Kingdom of Bavaria
action filter_type
action find
entity Kingdom of Bavaria
relation capital
type administrative territorial entity
['Kingdom of Bavaria', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Kingdom_of_Bavaria property:capital ?t }
[]
administrative territorial entity
Clarification for simple ques.
Q154195
SYSTEM
Did you mean Kingdom of Bavaria ?
Q1324889 Q154195 Q980
(Q1324889,P36,c(Q56061)) (Q154195,P36,c(Q56061)) (Q980,P36,c(Q56061))
[ANSWER]
['Q1324889', 'P36', {'concept': 'Q56061'}] ['Q154195', 'P36', {'concept': 'Q56061'}] ['Q980', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q154195 property:P36 ?t }
Germiyanids Kingdom of Bavaria Bavaria
Did you mean Kingdom of Bavaria ?
Kingdom of Bavaria
['Germiyanids', 'capital', {'concept': 'administrative territorial entity'}] ['Kingdom of Bavaria', 'capital', {'concept': 'administrative territorial entity'}] ['Bavaria', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Kingdom_of_Bavaria property:capital ?t }
[]
Simple Question (Coreferenced)
USER
Yes
(Q154195,P36,c(Q56061))
['Q154195', 'P36', {'concept': 'Q56061'}]
['Kingdom of Bavaria', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q1726
SYSTEM
Munich
Q1726
(Q154195,P36,c(Q56061))
action filter_type
action find
entity Q154195
relation P36
type Q56061
[ANSWER] is called the capital of that state
['Q154195', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q154195 property:P36 ?t }
Munich
Munich is called the capital of that state
Munich
action filter_type
action find
entity Kingdom of Bavaria
relation capital
type administrative territorial entity
['Kingdom of Bavaria', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Kingdom_of_Bavaria property:capital ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1726 Q78154
P20
Q502895
USER
Does Ludwig Hofmann have that administrative territory as place of death ?
(Q78154,P20,Q1726)
action is_in
entity Q1726
action find
entity Q78154
relation P20
['Q78154', 'P20', 'Q1726']
ASK WHERE { resource:Q78154 property:P20 resource:Q1726 }
Munich Ludwig Hofmann
action is_in
entity Munich
action find
entity Ludwig Hofmann
relation place of death
['Ludwig Hofmann', 'place of death', 'Munich']
ASK WHERE { resource:Ludwig_Hofmann property:place_of_death resource:Munich }
[]
common name
SYSTEM
YES
(Q78154,P20,Q1726)
action is_in
entity Q1726
action find
entity Q78154
relation P20
[ANSWER]
['Q78154', 'P20', 'Q1726']
ASK WHERE { resource:Q78154 property:P20 resource:Q1726 }
Yes
action is_in
entity Munich
action find
entity Ludwig Hofmann
relation place of death
['Ludwig Hofmann', 'place of death', 'Munich']
ASK WHERE { resource:Ludwig_Hofmann property:place_of_death resource:Munich }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have around 3 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?o ) WHERE { ?q property:P532 ?r . ?q rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 } GROUP BY ?q } . FILTER ( ?o = 3 ) }
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?o ) WHERE { ?q property:port_of_registry ?r . ?q rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?o = 3 ) }
[]
administrative territorial entity ship type
SYSTEM
1
Q11707059
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?o ) WHERE { ?q property:P532 ?r . ?q rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 } GROUP BY ?q } . FILTER ( ?o = 3 ) }
MS Arrow
1
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?o ) WHERE { ?q property:port_of_registry ?r . ?q rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?o = 3 ) }
[]