Simple Question (Direct)
Simple Question
Q90356
P27
Q1048835
USER
Which political territory does Ruth von Mayenburg belong to ?
(Q90356,P27,c(Q1048835))
action filter_type
action find
entity Q90356
relation P27
type Q1048835
['Q90356', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q90356 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Ruth von Mayenburg
action filter_type
action find
entity Ruth von Mayenburg
relation country of citizenship
type political territorial entity
['Ruth von Mayenburg', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Ruth_von_Mayenburg property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q90356,P27,c(Q1048835))
action filter_type
action find
entity Q90356
relation P27
type Q1048835
Ruth von Mayenburg belongs to [ANSWER]
['Q90356', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q90356 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Austria
Ruth von Mayenburg belongs to Austria
Austria
action filter_type
action find
entity Ruth von Mayenburg
relation country of citizenship
type political territorial entity
['Ruth von Mayenburg', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Ruth_von_Mayenburg property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P276
Q15275719
USER
Which recurring event is located at that political territory ?
(c(Q15275719),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q40']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15275719 . ?h property:P276 resource:Q40 }
Austria
action filter_type
action find_reverse
entity Austria
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Austria']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:recurring_event . ?h property:location resource:Austria }
[]
recurring event
Q298553
SYSTEM
Tour of Austria
Q298553
(c(Q15275719),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q15275719
[ANSWER] is located at that political territory
[{'concept': 'Q15275719'}, 'P276', 'Q40']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15275719 . ?h property:P276 resource:Q40 }
Tour of Austria
Tour of Austria is located at that political territory
Tour of Austria
action filter_type
action find_reverse
entity Austria
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Austria']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:recurring_event . ?h property:location resource:Austria }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q298553 Q1551943
P17
Q1048835
USER
Does Tour of Austria belong to Cheste ?
(Q298553,P17,Q1551943)
action is_in
entity Q1551943
action find
entity Q298553
relation P17
['Q298553', 'P17', 'Q1551943']
ASK WHERE { resource:Q298553 property:P17 resource:Q1551943 }
Tour of Austria Cheste
action is_in
entity Cheste
action find
entity Tour of Austria
relation country
['Tour of Austria', 'country', 'Cheste']
ASK WHERE { resource:Tour_of_Austria property:country resource:Cheste }
[]
political territorial entity
SYSTEM
NO
(Q298553,P17,Q1551943)
action is_in
entity Q1551943
action find
entity Q298553
relation P17
[ANSWER]
['Q298553', 'P17', 'Q1551943']
ASK WHERE { resource:Q298553 property:P17 resource:Q1551943 }
No
action is_in
entity Cheste
action find
entity Tour of Austria
relation country
['Tour of Austria', 'country', 'Cheste']
ASK WHERE { resource:Tour_of_Austria property:country resource:Cheste }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q696797 Q298553
P47 P17
Q1048835
USER
Which political territories are Tour of Austria located in or share the border with Balaguer ?
OR((Q298553,P17,c(Q1048835)), (Q696797,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q298553
relation P17
action find
entity Q696797
relation P47
type Q1048835
{'OR': [['Q298553', 'P17', {'concept': 'Q1048835'}], ['Q696797', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { { resource:Q696797 property:P47 ?e } UNION { resource:Q298553 property:P17 ?e } } }
Balaguer Tour of Austria
action filter_type
action union
action find
entity Tour of Austria
relation country
action find
entity Balaguer
relation shares border with
type political territorial entity
{'OR': [['Tour of Austria', 'country', {'concept': 'political territorial entity'}], ['Balaguer', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { { resource:Balaguer property:shares_border_with ?e } UNION { resource:Tour_of_Austria property:country ?e } } }
[]
political territorial entity
Q1769666 Q1646906 Q1769656 Q40 Q1995286 Q1770851 Q1769588 Q955140 Q1900130 Q1766633
SYSTEM
La Sentiu de Sió, Os de Balaguer, Cubells, Austria, Camarasa, Castelló de Farfanya, Menàrguens, Vallfogona de Balaguer, Bellcaire d'Urgell, Térmens
Q1769666 Q1646906 Q1769656 Q40 Q1995286 Q1770851 Q1769588 Q955140 Q1900130 Q1766633
OR((Q298553,P17,c(Q1048835)), (Q696797,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q298553
relation P17
action find
entity Q696797
relation P47
type Q1048835
[ANSWERS]
{'OR': [['Q298553', 'P17', {'concept': 'Q1048835'}], ['Q696797', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { { resource:Q696797 property:P47 ?e } UNION { resource:Q298553 property:P17 ?e } } }
La Sentiu de Sió Os de Balaguer Cubells Austria Camarasa Castelló de Farfanya Menàrguens Vallfogona de Balaguer Bellcaire d'Urgell Térmens
Which political territories are Tour of Austria located in or share the border with Balaguer
La Sentiu de Sió Os de Balaguer Cubells Austria Camarasa Castelló de Farfanya Menàrguens Vallfogona de Balaguer Bellcaire d'Urgell Térmens
action filter_type
action union
action find
entity Tour of Austria
relation country
action find
entity Balaguer
relation shares border with
type political territorial entity
{'OR': [['Tour of Austria', 'country', {'concept': 'political territorial entity'}], ['Balaguer', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { { resource:Balaguer property:shares_border_with ?e } UNION { resource:Tour_of_Austria property:country ?e } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4714104 Q1769666
P17
Q15617994
USER
Which administrative territories do La Sentiu de Sió or Vătălețu River belong to ?
OR((Q1769666,P17,c(Q15617994)), (Q4714104,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1769666
relation P17
action find
entity Q4714104
relation P17
type Q15617994
{'OR': [['Q1769666', 'P17', {'concept': 'Q15617994'}], ['Q4714104', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1769666 property:P17 ?l } UNION { resource:Q4714104 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Vătălețu River La Sentiu de Sió
action filter_type
action union
action find
entity La Sentiu de Sió
relation country
action find
entity Vătălețu River
relation country
type designation for an administrative territorial entity
{'OR': [['La Sentiu de Sió', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vătălețu River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:La_Sentiu_de_Sió property:country ?l } UNION { resource:Vătălețu_River property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q218
SYSTEM
Spain, Romania
Q29 Q218
OR((Q1769666,P17,c(Q15617994)), (Q4714104,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1769666
relation P17
action find
entity Q4714104
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1769666', 'P17', {'concept': 'Q15617994'}], ['Q4714104', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1769666 property:P17 ?l } UNION { resource:Q4714104 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Spain Romania
Which administrative territories La Sentiu de Sió or Vătălețu River belong to
Spain Romania
action filter_type
action union
action find
entity La Sentiu de Sió
relation country
action find
entity Vătălețu River
relation country
type designation for an administrative territorial entity
{'OR': [['La Sentiu de Sió', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vătălețu River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:La_Sentiu_de_Sió property:country ?l } UNION { resource:Vătălețu_River property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q40
P463
Q56061 Q484652
USER
How many administrative territories and international organizations had Austria as their member ?
(Q40,P463,c(Q56061)) (Q40,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q40
relation P463
type Q56061
action filter_type
action find
entity Q40
relation P463
type Q484652
['Q40', 'P463', {'concept': 'Q56061'}] ['Q40', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q484652 ) } }
Austria
action count
action union
action filter_type
action find
entity Austria
relation member of
type administrative territorial entity
action filter_type
action find
entity Austria
relation member of
type international organization
['Austria', 'member of', {'concept': 'administrative territorial entity'}] ['Austria', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:international_organization ) } }
[]
administrative territorial entity international organization
SYSTEM
1 administrative territories and 4 international organizations
Q1065 Q81299 Q458 Q188822 Q1043527
(Q40,P463,c(Q56061)) (Q40,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q40
relation P463
type Q56061
action filter_type
action find
entity Q40
relation P463
type Q484652
[ANSWER]
['Q40', 'P463', {'concept': 'Q56061'}] ['Q40', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q484652 ) } }
United Nations Organization for Security and Co-operation in Europe European Union Asian Development Bank Multilateral Investment Guarantee Agency
1 administrative territories and 4 international organizations
action count
action union
action filter_type
action find
entity Austria
relation member of
type administrative territorial entity
action filter_type
action find
entity Austria
relation member of
type international organization
['Austria', 'member of', {'concept': 'administrative territorial entity'}] ['Austria', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:international_organization ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q601112
P706
Q271669 Q107425 Q1048835
USER
How many political territories have their location as around the same number of landforms and landscapes as Pollença ?
(c(Q1048835),P706,c(Q271669)|c(Q107425))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q601112
relation P706
type Q271669
type Q107425
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?h WHERE { VALUES ( ?c ) { ( ontology:Q271669 ) ( ontology:Q107425 ) } . ?v rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q601112 property:P706 ?m . { VALUES ( ?f ) { ( ontology:Q107425 ) ( ontology:Q271669 ) } . ?m rdf:type ?f } } } . FILTER ( ?d = ?a ) }
Pollença
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Pollença
relation located on terrain feature
type landform
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?h WHERE { VALUES ( ?c ) { ( ontology:landform ) ( ontology:landscape ) } . ?v rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Pollença property:located_on_terrain_feature ?m . { VALUES ( ?f ) { ( ontology:landscape ) ( ontology:landform ) } . ?m rdf:type ?f } } } . FILTER ( ?d = ?a ) }
[]
landform landscape political territorial entity
SYSTEM
79
Q927498 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q847324 Q847321 Q850989 Q983467 Q743716 Q734805 Q555140 Q983463 Q13737 Q493017 Q950940 Q669078 Q851224 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q7198529 Q832991 Q975679 Q601112 Q984496 Q743741 Q988714 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q652988 Q832967 Q185409 Q769 Q984485 Q983625 Q983628 Q656449 Q988688 Q213361 Q984493 Q984491 Q984499 Q3396832 Q988696 Q943948 Q697126 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q271669)|c(Q107425))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q601112
relation P706
type Q271669
type Q107425
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?h WHERE { VALUES ( ?c ) { ( ontology:Q271669 ) ( ontology:Q107425 ) } . ?v rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q601112 property:P706 ?m . { VALUES ( ?f ) { ( ontology:Q107425 ) ( ontology:Q271669 ) } . ?m rdf:type ?f } } } . FILTER ( ?d = ?a ) }
Llucmajor Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Alaior Esporles Campanet Montuïri Campos Sant Antoni de Portmany Capileira Sant Llorenç des Cardassar Basilan Andratx Marratxí Maria de la Salut Costitx Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Pistyll Sóller Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Búger Valldemossa Llubí Grenada Es Migjorn Gran Puigpunyent Sant Joan de Labritja Ariany, Majorca Inca Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Mancor de la Vall Santa Maria del Camí Bridgend County Borough Banyalbufar Son Servera Capdepera
79
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Pollença
relation located on terrain feature
type landform
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?h WHERE { VALUES ( ?c ) { ( ontology:landform ) ( ontology:landscape ) } . ?v rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Pollença property:located_on_terrain_feature ?m . { VALUES ( ?f ) { ( ontology:landscape ) ( ontology:landform ) } . ?m rdf:type ?f } } } . FILTER ( ?d = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q984496
P706
Q271669 Q107425 Q1048835
USER
And what about Selva?
(c(Q1048835),P706,c(Q271669)|c(Q107425))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q984496
relation P706
type Q271669
type Q107425
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?y ) WHERE { { ?q property:P706 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q107425 } UNION { ?q property:P706 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q271669 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q984496 property:P706 ?u . { { ?u rdf:type ontology:Q107425 } UNION { ?u rdf:type ontology:Q271669 } } } } . FILTER ( ?y = ?k ) }
Selva
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Selva
relation located on terrain feature
type landform
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?y ) WHERE { { ?q property:located_on_terrain_feature ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:landscape } UNION { ?q property:located_on_terrain_feature ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:landform } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Selva property:located_on_terrain_feature ?u . { { ?u rdf:type ontology:landscape } UNION { ?u rdf:type ontology:landform } } } } . FILTER ( ?y = ?k ) }
[]
landform landscape political territorial entity
SYSTEM
79
Q927498 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q847324 Q847321 Q850989 Q983467 Q743716 Q734805 Q555140 Q983463 Q13737 Q493017 Q950940 Q669078 Q851224 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q7198529 Q832991 Q975679 Q601112 Q984496 Q743741 Q988714 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q652988 Q832967 Q185409 Q769 Q984485 Q983625 Q983628 Q656449 Q988688 Q213361 Q984493 Q984491 Q984499 Q3396832 Q988696 Q943948 Q697126 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q271669)|c(Q107425))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q984496
relation P706
type Q271669
type Q107425
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?y ) WHERE { { ?q property:P706 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q107425 } UNION { ?q property:P706 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q271669 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q984496 property:P706 ?u . { { ?u rdf:type ontology:Q107425 } UNION { ?u rdf:type ontology:Q271669 } } } } . FILTER ( ?y = ?k ) }
Llucmajor Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Alaior Esporles Campanet Montuïri Campos Sant Antoni de Portmany Capileira Sant Llorenç des Cardassar Basilan Andratx Marratxí Maria de la Salut Costitx Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Pistyll Sóller Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Búger Valldemossa Llubí Grenada Es Migjorn Gran Puigpunyent Sant Joan de Labritja Ariany, Majorca Inca Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Mancor de la Vall Santa Maria del Camí Bridgend County Borough Banyalbufar Son Servera Capdepera
79
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Selva
relation located on terrain feature
type landform
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'landscape'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?y ) WHERE { { ?q property:located_on_terrain_feature ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:landscape } UNION { ?q property:located_on_terrain_feature ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:landform } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Selva property:located_on_terrain_feature ?u . { { ?u rdf:type ontology:landscape } UNION { ?u rdf:type ontology:landform } } } } . FILTER ( ?y = ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11408214 Q4714104
P17
Q15617994
USER
Which administrative territories are Vătălețu River or Minami-Shimizusawa Station a part of ?
OR((Q4714104,P17,c(Q15617994)), (Q11408214,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4714104
relation P17
action find
entity Q11408214
relation P17
type Q15617994
{'OR': [['Q4714104', 'P17', {'concept': 'Q15617994'}], ['Q11408214', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q4714104 property:P17 ?v } UNION { resource:Q11408214 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Minami-Shimizusawa Station Vătălețu River
action filter_type
action union
action find
entity Vătălețu River
relation country
action find
entity Minami-Shimizusawa Station
relation country
type designation for an administrative territorial entity
{'OR': [['Vătălețu River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Minami-Shimizusawa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Vătălețu_River property:country ?v } UNION { resource:Minami-Shimizusawa_Station property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q17
SYSTEM
Romania, Japan
Q218 Q17
OR((Q4714104,P17,c(Q15617994)), (Q11408214,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4714104
relation P17
action find
entity Q11408214
relation P17
type Q15617994
[ANSWERS] are Vătălețu River or Minami-Shimizusawa Station a part of
{'OR': [['Q4714104', 'P17', {'concept': 'Q15617994'}], ['Q11408214', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q4714104 property:P17 ?v } UNION { resource:Q11408214 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Romania Japan
Romania and Japan are Vătălețu River or Minami-Shimizusawa Station a part of
Romania Japan
action filter_type
action union
action find
entity Vătălețu River
relation country
action find
entity Minami-Shimizusawa Station
relation country
type designation for an administrative territorial entity
{'OR': [['Vătălețu River', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Minami-Shimizusawa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Vătălețu_River property:country ?v } UNION { resource:Minami-Shimizusawa_Station property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q11408214
P17
Q15617994
USER
How many administrative territories do Minami-Shimizusawa Station belong to ?
(Q11408214,P17,c(Q15617994))
action count
action filter_type
action find
entity Q11408214
relation P17
type Q15617994
['Q11408214', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q11408214 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Minami-Shimizusawa Station
action count
action filter_type
action find
entity Minami-Shimizusawa Station
relation country
type designation for an administrative territorial entity
['Minami-Shimizusawa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Minami-Shimizusawa_Station property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q17
(Q11408214,P17,c(Q15617994))
action count
action filter_type
action find
entity Q11408214
relation P17
type Q15617994
[ANSWER]
['Q11408214', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q11408214 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Japan
1
action count
action filter_type
action find
entity Minami-Shimizusawa Station
relation country
type designation for an administrative territorial entity
['Minami-Shimizusawa Station', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Minami-Shimizusawa_Station property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P710
Q15275719
USER
Which recurring event has Austria as its participant ?
(c(Q15275719),P710,Q40)
action filter_type
action find_reverse
entity Q40
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q40']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q40 . ?r rdf:type ontology:Q15275719 }
Austria
action filter_type
action find_reverse
entity Austria
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Austria']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Austria . ?r rdf:type ontology:recurring_event }
[]
recurring event
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q40)
action filter_type
action find_reverse
entity Q40
relation P710
type Q15275719
[ANSWER] has Austria as its participant
[{'concept': 'Q15275719'}, 'P710', 'Q40']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q40 . ?r rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Eurovision Song Contest 1996 has Austria as its participant
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Austria
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Austria']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Austria . ?r rdf:type ontology:recurring_event }
[]