Simple Question (Direct)
Simple Question
Q607811
P6
Q502895
USER
Which person is Villagonzalo Pedernales the head of goverment of ?
(Q607811,P6,c(Q502895))
action filter_type
action find
entity Q607811
relation P6
type Q502895
['Q607811', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q607811 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Villagonzalo Pedernales
action filter_type
action find
entity Villagonzalo Pedernales
relation head of government
type common name
['Villagonzalo Pedernales', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Villagonzalo_Pedernales property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q14053284
SYSTEM
Juan Carlos de la Fuente Ruiz
Q14053284
(Q607811,P6,c(Q502895))
action filter_type
action find
entity Q607811
relation P6
type Q502895
[ANSWER] is Villagonzalo Pedernales the head of goverment of
['Q607811', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q607811 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Juan Carlos de la Fuente Ruiz
Juan Carlos de la Fuente Ruiz is Villagonzalo Pedernales the head of goverment of
Juan Carlos de la Fuente Ruiz
action filter_type
action find
entity Villagonzalo Pedernales
relation head of government
type common name
['Villagonzalo Pedernales', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Villagonzalo_Pedernales property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q607811
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of Villagonzalo Pedernales ?
(c(Q12737077),P1001,Q607811)
action filter_type
action find_reverse
entity Q607811
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q607811']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . ?p property:P1001 resource:Q607811 }
Villagonzalo Pedernales
action filter_type
action find_reverse
entity Villagonzalo Pedernales
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Villagonzalo Pedernales']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . ?p property:applies_to_jurisdiction resource:Villagonzalo_Pedernales }
[]
occupation
Q26699036
SYSTEM
mayor of Villagonzalo Pedernales
Q26699036
(c(Q12737077),P1001,Q607811)
action filter_type
action find_reverse
entity Q607811
relation P1001
type Q12737077
[ANSWER] has control over the jurisdiction of Villagonzalo Pedernales
[{'concept': 'Q12737077'}, 'P1001', 'Q607811']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . ?p property:P1001 resource:Q607811 }
mayor of Villagonzalo Pedernales
Mayor of Villagonzalo Pedernales has control over the jurisdiction of Villagonzalo Pedernales
mayor of Villagonzalo Pedernales
action filter_type
action find_reverse
entity Villagonzalo Pedernales
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Villagonzalo Pedernales']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . ?p property:applies_to_jurisdiction resource:Villagonzalo_Pedernales }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26699036
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q26699036,P17,c(Q15617994))
action filter_type
action find
entity Q26699036
relation P17
type Q15617994
['Q26699036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q26699036 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
mayor of Villagonzalo Pedernales
action filter_type
action find
entity mayor of Villagonzalo Pedernales
relation country
type designation for an administrative territorial entity
['mayor of Villagonzalo Pedernales', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:mayor_of_Villagonzalo_Pedernales property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26699036,P17,c(Q15617994))
action filter_type
action find
entity Q26699036
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q26699036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q26699036 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Spain
That occupation is located in Spain
Spain
action filter_type
action find
entity mayor of Villagonzalo Pedernales
relation country
type designation for an administrative territorial entity
['mayor of Villagonzalo Pedernales', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:mayor_of_Villagonzalo_Pedernales property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q382682 Q607811
P47 P20
Q56061
USER
Which administrative territories share border with Villagonzalo Pedernales or did Petrus Camper die ?
OR((Q607811,P47,c(Q56061)), (Q382682,P20,c(Q56061)))
action filter_type
action union
action find
entity Q607811
relation P47
action find
entity Q382682
relation P20
type Q56061
{'OR': [['Q607811', 'P47', {'concept': 'Q56061'}], ['Q382682', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q607811 property:P47 ?h } UNION { resource:Q382682 property:P20 ?h } } }
Petrus Camper Villagonzalo Pedernales
action filter_type
action union
action find
entity Villagonzalo Pedernales
relation shares border with
action find
entity Petrus Camper
relation place of death
type administrative territorial entity
{'OR': [['Villagonzalo Pedernales', 'shares border with', {'concept': 'administrative territorial entity'}], ['Petrus Camper', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:Villagonzalo_Pedernales property:shares_border_with ?h } UNION { resource:Petrus_Camper property:place_of_death ?h } } }
[]
administrative territorial entity
Q36600 Q9580
SYSTEM
The Hague, Burgos
Q36600 Q9580
OR((Q607811,P47,c(Q56061)), (Q382682,P20,c(Q56061)))
action filter_type
action union
action find
entity Q607811
relation P47
action find
entity Q382682
relation P20
type Q56061
[ANSWERS] share border with Villagonzalo Pedernales or did Petrus Camper die
{'OR': [['Q607811', 'P47', {'concept': 'Q56061'}], ['Q382682', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q607811 property:P47 ?h } UNION { resource:Q382682 property:P20 ?h } } }
The Hague Burgos
The Hague and Burgos share border with Villagonzalo Pedernales or did Petrus Camper die
The Hague Burgos
action filter_type
action union
action find
entity Villagonzalo Pedernales
relation shares border with
action find
entity Petrus Camper
relation place of death
type administrative territorial entity
{'OR': [['Villagonzalo Pedernales', 'shares border with', {'concept': 'administrative territorial entity'}], ['Petrus Camper', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:Villagonzalo_Pedernales property:shares_border_with ?h } UNION { resource:Petrus_Camper property:place_of_death ?h } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3035114 Q607811
P27 P17
Q15617994
USER
Which administrative territories are Villagonzalo Pedernales a part of or are Dominique Dufourny a civilian of ?
OR((Q607811,P17,c(Q15617994)), (Q3035114,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q607811
relation P17
action find
entity Q3035114
relation P27
type Q15617994
{'OR': [['Q607811', 'P17', {'concept': 'Q15617994'}], ['Q3035114', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q607811 property:P17 ?c } UNION { resource:Q3035114 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Dominique Dufourny Villagonzalo Pedernales
action filter_type
action union
action find
entity Villagonzalo Pedernales
relation country
action find
entity Dominique Dufourny
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Villagonzalo Pedernales', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dominique Dufourny', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Villagonzalo_Pedernales property:country ?c } UNION { resource:Dominique_Dufourny property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q31
SYSTEM
Spain, Belgium
Q29 Q31
OR((Q607811,P17,c(Q15617994)), (Q3035114,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q607811
relation P17
action find
entity Q3035114
relation P27
type Q15617994
[ANSWERS] are Villagonzalo Pedernales a part of or are Dominique Dufourny a civilian of
{'OR': [['Q607811', 'P17', {'concept': 'Q15617994'}], ['Q3035114', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q607811 property:P17 ?c } UNION { resource:Q3035114 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Spain Belgium
Spain and Belgium are Villagonzalo Pedernales a part of or are Dominique Dufourny a civilian of
Spain Belgium
action filter_type
action union
action find
entity Villagonzalo Pedernales
relation country
action find
entity Dominique Dufourny
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Villagonzalo Pedernales', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dominique Dufourny', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Villagonzalo_Pedernales property:country ?c } UNION { resource:Dominique_Dufourny property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with atleast 26 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 26
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?q ) WHERE { ?m property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?q >= 26 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?q ) WHERE { ?m property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?q >= 26 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
3
Q183 Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 26
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?q ) WHERE { ?m property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } . FILTER ( ?q >= 26 ) }
Germany Australia Canada
3
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?q ) WHERE { ?m property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } . FILTER ( ?q >= 26 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36600
P159
Q43229
USER
Which organizations have HQ at The Hague ?
(c(Q43229),P159,Q36600)
action filter_type
action find_reverse
entity Q36600
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q36600']
SELECT DISTINCT ?o WHERE { ?o property:P159 resource:Q36600 . ?o rdf:type ontology:Q43229 }
The Hague
action filter_type
action find_reverse
entity The Hague
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'The Hague']
SELECT DISTINCT ?o WHERE { ?o property:headquarters_location resource:The_Hague . ?o rdf:type ontology:organization }
[]
organization
Q154950 Q338633 Q291171
SYSTEM
Royal Dutch Shell, KPN, Aegon N.V.
Q132168 Q2623882 Q16765325 Q706793 Q2050362 Q5171238 Q338633 Q2084143 Q13534432 Q1892275 Q291171 Q6051079 Q7907118 Q6039404 Q5095516 Q1299444 Q18205852 Q501576 Q979033 Q113269 Q1130466 Q4653345 Q4130823 Q154950 Q2489459 Q129724 Q952259 Q5921598 Q215613 Q6999073 Q670264 Q2341438
(c(Q43229),P159,Q36600)
action filter_type
action find_reverse
entity Q36600
relation P159
type Q43229
[ANSWERS] have HQ at The Hague
[{'concept': 'Q43229'}, 'P159', 'Q36600']
SELECT DISTINCT ?o WHERE { ?o property:P159 resource:Q36600 . ?o rdf:type ontology:Q43229 }
HTM Personenvervoer Bank Nederlandse Gemeenten Netherlands Development Finance Company Tamoil Carnegie Foundation Cornelis Kruseman Stichting KPN ASN Bank Nederlandse Waterschapsbank Wereldhave Aegon N.V. International Institute for Communication and Development VJ Movement Institute for Historical Justice and Reconciliation Chicago Bridge & Iron Company NIBC Bank Cartoon Movement Iran–United States Claims Tribunal Amahoro Foundation NN Investment Partners Koninklijke TNT Post APM Terminals Hague Conference on Private International Law Royal Dutch Shell Nuffic Netherlands Organisation for Scientific Research Casema PostNL Unrepresented Nations and Peoples Organization Netherlands-African Business Council NV Ingenieurskantoor voor Scheepsbouw Jan Campert foundation
Royal Dutch Shell, KPN and Aegon N.V. have HQ at The Hague
Royal Dutch Shell KPN Aegon N.V.
action filter_type
action find_reverse
entity The Hague
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'The Hague']
SELECT DISTINCT ?o WHERE { ?o property:headquarters_location resource:The_Hague . ?o rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q154950
P355
Q43229
USER
Which organizations are Royal Dutch Shell the parent company of ?
(Q154950,P355,c(Q43229))
action filter_type
action find
entity Q154950
relation P355
type Q43229
['Q154950', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q43229 . resource:Q154950 property:P355 ?e }
Royal Dutch Shell
action filter_type
action find
entity Royal Dutch Shell
relation subsidiary
type organization
['Royal Dutch Shell', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:organization . resource:Royal_Dutch_Shell property:subsidiary ?e }
[]
organization
Q22987833 Q2980329 Q3240764
SYSTEM
Shell Overseas Holdings Limited, Bataafse Petroleum Maatschappij, Shell Oil Company
Q22987833 Q2980329 Q3240764
(Q154950,P355,c(Q43229))
action filter_type
action find
entity Q154950
relation P355
type Q43229
The [ANSWERS] are Royal Dutch Shell the parent company of
['Q154950', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q43229 . resource:Q154950 property:P355 ?e }
Shell Overseas Holdings Limited Bataafse Petroleum Maatschappij Shell Oil Company
The Shell Overseas Holdings Limited, Bataafse Petroleum Maatschappij and Shell Oil Company are Royal Dutch Shell the parent company of
Shell Overseas Holdings Limited Bataafse Petroleum Maatschappij Shell Oil Company
action filter_type
action find
entity Royal Dutch Shell
relation subsidiary
type organization
['Royal Dutch Shell', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:organization . resource:Royal_Dutch_Shell property:subsidiary ?e }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3240764
P749
Q2424752
USER
Which product has that one as parent organization ?
(c(Q2424752),P749,Q3240764)
action filter_type
action find_reverse
entity Q3240764
relation P749
type Q2424752
[{'concept': 'Q2424752'}, 'P749', 'Q3240764']
SELECT DISTINCT ?l WHERE { ?l property:P749 resource:Q3240764 . ?l rdf:type ontology:Q2424752 }
Shell Oil Company
action filter_type
action find_reverse
entity Shell Oil Company
relation parent organization
type product
[{'concept': 'product'}, 'parent organization', 'Shell Oil Company']
SELECT DISTINCT ?l WHERE { ?l property:parent_organization resource:Shell_Oil_Company . ?l rdf:type ontology:product }
[]
product
Clarification for simple ques.
Q2980329
SYSTEM
Did you mean Bataafse Petroleum Maatschappij ?
Q22987833 Q2980329 Q3240764
(c(Q2424752),P749,Q22987833) (c(Q2424752),P749,Q2980329) (c(Q2424752),P749,Q3240764)
[ANSWER]
[{'concept': 'Q2424752'}, 'P749', 'Q22987833'] [{'concept': 'Q2424752'}, 'P749', 'Q2980329'] [{'concept': 'Q2424752'}, 'P749', 'Q3240764']
SELECT DISTINCT ?l WHERE { ?l property:P749 resource:Q3240764 . ?l rdf:type ontology:Q2424752 }
Shell Overseas Holdings Limited Bataafse Petroleum Maatschappij Shell Oil Company
Did you mean Bataafse Petroleum Maatschappij ?
Bataafse Petroleum Maatschappij
[{'concept': 'product'}, 'parent organization', 'Shell Overseas Holdings Limited'] [{'concept': 'product'}, 'parent organization', 'Bataafse Petroleum Maatschappij'] [{'concept': 'product'}, 'parent organization', 'Shell Oil Company']
SELECT DISTINCT ?l WHERE { ?l property:parent_organization resource:Shell_Oil_Company . ?l rdf:type ontology:product }
[]
Simple Question (Coreferenced)
USER
No, I meant Shell Oil Company. Could you tell me the answer for that?
(c(Q2424752),P749,Q3240764)
Q3240764
[{'concept': 'Q2424752'}, 'P749', 'Q3240764']
[{'concept': 'product'}, 'parent organization', 'Shell Oil Company']
[]
Q7284445
SYSTEM
Rain-X
Q7284445
(c(Q2424752),P749,Q3240764)
action filter_type
action find_reverse
entity Q3240764
relation P749
type Q2424752
[ANSWER] has that one as parent organization
[{'concept': 'Q2424752'}, 'P749', 'Q3240764']
SELECT DISTINCT ?l WHERE { ?l property:P749 resource:Q3240764 . ?l rdf:type ontology:Q2424752 }
Rain-X
Rain-X has that one as parent organization
Rain-X
action filter_type
action find_reverse
entity Shell Oil Company
relation parent organization
type product
[{'concept': 'product'}, 'parent organization', 'Shell Oil Company']
SELECT DISTINCT ?l WHERE { ?l property:parent_organization resource:Shell_Oil_Company . ?l rdf:type ontology:product }
[]