Simple Question (Direct)
Simple Question
Q11944236
P735
Q82799
USER
What is forename of Quim Marqués ?
(Q11944236,P735,c(Q82799))
action filter_type
action find
entity Q11944236
relation P735
type Q82799
['Q11944236', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11944236 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Quim Marqués
action filter_type
action find
entity Quim Marqués
relation given name
type name
['Quim Marqués', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Quim_Marqués property:given_name ?d . ?d rdf:type ontology:name }
[]
name
Q2123153
SYSTEM
Quim
Q2123153
(Q11944236,P735,c(Q82799))
action filter_type
action find
entity Q11944236
relation P735
type Q82799
Forename of [ANSWER] Marqués is of [ANSWER]
['Q11944236', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11944236 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Quim
Forename of Quim Marqués is of Quim
Quim
action filter_type
action find
entity Quim Marqués
relation given name
type name
['Quim Marqués', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Quim_Marqués property:given_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11944236
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q2123153,P1412,c(Q34770))
action filter_type
action find
entity Q11944236
relation P1412
type Q34770
['Q2123153', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q11944236 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Quim Marqués
action filter_type
action find
entity Quim Marqués
relation languages spoken, written or signed
type language
['Quim', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Quim_Marqués property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q2123153,P1412,c(Q34770))
action filter_type
action find
entity Q11944236
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q2123153', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q11944236 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Spanish
Spanish is that person capable of writing
Spanish
action filter_type
action find
entity Quim Marqués
relation languages spoken, written or signed
type language
['Quim', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Quim_Marqués property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1542231 Q11944236
P1412
Q34770
USER
Or Luca D’Ascanio?
OR((Q11944236,P1412,c(Q34770)), (Q1542231,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q11944236
relation P1412
action find
entity Q1542231
relation P1412
type Q34770
{'OR': [['Q11944236', 'P1412', {'concept': 'Q34770'}], ['Q1542231', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q11944236 property:P1412 ?p } UNION { resource:Q1542231 property:P1412 ?p } } . ?p rdf:type ontology:Q34770 }
Luca D’Ascanio Quim Marqués
action filter_type
action union
action find
entity Quim Marqués
relation languages spoken, written or signed
action find
entity Luca D’Ascanio
relation languages spoken, written or signed
type language
{'OR': [['Quim Marqués', 'languages spoken, written or signed', {'concept': 'language'}], ['Luca D’Ascanio', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Quim_Marqués property:languages_spoken,_written_or_signed ?p } UNION { resource:Luca_D’Ascanio property:languages_spoken,_written_or_signed ?p } } . ?p rdf:type ontology:language }
[]
language
Q652 Q1321
SYSTEM
Italian, Spanish
Q652 Q1321
OR((Q11944236,P1412,c(Q34770)), (Q1542231,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q11944236
relation P1412
action find
entity Q1542231
relation P1412
type Q34770
[ANSWERS]
{'OR': [['Q11944236', 'P1412', {'concept': 'Q34770'}], ['Q1542231', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q11944236 property:P1412 ?p } UNION { resource:Q1542231 property:P1412 ?p } } . ?p rdf:type ontology:Q34770 }
Italian Spanish
Italian Spanish
action filter_type
action union
action find
entity Quim Marqués
relation languages spoken, written or signed
action find
entity Luca D’Ascanio
relation languages spoken, written or signed
type language
{'OR': [['Quim Marqués', 'languages spoken, written or signed', {'concept': 'language'}], ['Luca D’Ascanio', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Quim_Marqués property:languages_spoken,_written_or_signed ?p } UNION { resource:Luca_D’Ascanio property:languages_spoken,_written_or_signed ?p } } . ?p rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7205443 Q1542231
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Luca D’Ascanio or do Plummer Park belong to ?
OR((Q1542231,P27,c(Q15617994)), (Q7205443,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1542231
relation P27
action find
entity Q7205443
relation P17
type Q15617994
{'OR': [['Q1542231', 'P27', {'concept': 'Q15617994'}], ['Q7205443', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1542231 property:P27 ?y } UNION { resource:Q7205443 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Plummer Park Luca D’Ascanio
action filter_type
action union
action find
entity Luca D’Ascanio
relation country of citizenship
action find
entity Plummer Park
relation country
type designation for an administrative territorial entity
{'OR': [['Luca D’Ascanio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Plummer Park', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Luca_D’Ascanio property:country_of_citizenship ?y } UNION { resource:Plummer_Park property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30
SYSTEM
Italy, United States of America
Q38 Q30
OR((Q1542231,P27,c(Q15617994)), (Q7205443,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1542231
relation P27
action find
entity Q7205443
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Luca D’Ascanio or do Plummer Park belong to
{'OR': [['Q1542231', 'P27', {'concept': 'Q15617994'}], ['Q7205443', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1542231 property:P27 ?y } UNION { resource:Q7205443 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Italy United States of America
Italy and United States of America are the countries of citizenship of Luca D’Ascanio or do Plummer Park belong to
Italy United States of America
action filter_type
action union
action find
entity Luca D’Ascanio
relation country of citizenship
action find
entity Plummer Park
relation country
type designation for an administrative territorial entity
{'OR': [['Luca D’Ascanio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Plummer Park', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Luca_D’Ascanio property:country_of_citizenship ?y } UNION { resource:Plummer_Park property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P276
Q56061
USER
Which administrative territory is located at Italy ?
(c(Q56061),P276,Q38)
action filter_type
action find_reverse
entity Q38
relation P276
type Q56061
[{'concept': 'Q56061'}, 'P276', 'Q38']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q38 . ?q rdf:type ontology:Q56061 }
Italy
action filter_type
action find_reverse
entity Italy
relation location
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'location', 'Italy']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Italy . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q677935
SYSTEM
Veii
Q677935
(c(Q56061),P276,Q38)
action filter_type
action find_reverse
entity Q38
relation P276
type Q56061
[ANSWER] is located at Italy
[{'concept': 'Q56061'}, 'P276', 'Q38']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q38 . ?q rdf:type ontology:Q56061 }
Veii
Veii is located at Italy
Veii
action filter_type
action find_reverse
entity Italy
relation location
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'location', 'Italy']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Italy . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q677935
P20
Q502895
USER
Who died in that administrative territory ?
(c(Q502895),P20,Q677935)
action filter_type
action find_reverse
entity Q677935
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q677935']
SELECT DISTINCT ?o WHERE { ?o property:P20 resource:Q677935 . ?o rdf:type ontology:Q502895 }
Veii
action filter_type
action find_reverse
entity Veii
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Veii']
SELECT DISTINCT ?o WHERE { ?o property:place_of_death resource:Veii . ?o rdf:type ontology:common_name }
[]
common name
Q633484
SYSTEM
Quintus Fabius Vibulanus
Q633484
(c(Q502895),P20,Q677935)
action filter_type
action find_reverse
entity Q677935
relation P20
type Q502895
[ANSWER] died in that administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q677935']
SELECT DISTINCT ?o WHERE { ?o property:P20 resource:Q677935 . ?o rdf:type ontology:Q502895 }
Quintus Fabius Vibulanus
Quintus Fabius Vibulanus died in that administrative territory
Quintus Fabius Vibulanus
action filter_type
action find_reverse
entity Veii
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Veii']
SELECT DISTINCT ?o WHERE { ?o property:place_of_death resource:Veii . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q633484 Q26699500 Q20056508
P39
Q12737077
USER
Did Quintus Fabius Vibulanus hold the position of mayor of Massanet de Cabrenys and Ancient Roman senator ?
(Q633484,P39,Q26699500) (Q633484,P39,Q20056508)
action is_in
entity Q633484
action intersection
action find_reverse
entity Q26699500
relation P39
action find_reverse
entity Q20056508
relation P39
['Q633484', 'P39', 'Q26699500'] ['Q633484', 'P39', 'Q20056508']
ASK WHERE { resource:Q633484 property:P39 resource:Q20056508 . resource:Q633484 property:P39 resource:Q26699500 }
Quintus Fabius Vibulanus mayor of Massanet de Cabrenys Ancient Roman senator
action is_in
entity Quintus Fabius Vibulanus
action intersection
action find_reverse
entity mayor of Massanet de Cabrenys
relation position held
action find_reverse
entity Ancient Roman senator
relation position held
['Quintus Fabius Vibulanus', 'position held', 'mayor of Massanet de Cabrenys'] ['Quintus Fabius Vibulanus', 'position held', 'Ancient Roman senator']
ASK WHERE { resource:Quintus_Fabius_Vibulanus property:position_held resource:Ancient_Roman_senator . resource:Quintus_Fabius_Vibulanus property:position_held resource:mayor_of_Massanet_de_Cabrenys }
[]
occupation
SYSTEM
NO and YES respectively
(Q633484,P39,Q26699500) (Q633484,P39,Q20056508)
action is_in
entity Q633484
action intersection
action find_reverse
entity Q26699500
relation P39
action find_reverse
entity Q20056508
relation P39
[ANSWER]
['Q633484', 'P39', 'Q26699500'] ['Q633484', 'P39', 'Q20056508']
ASK WHERE { resource:Q633484 property:P39 resource:Q20056508 . resource:Q633484 property:P39 resource:Q26699500 }
NO and YES respectively
action is_in
entity Quintus Fabius Vibulanus
action intersection
action find_reverse
entity mayor of Massanet de Cabrenys
relation position held
action find_reverse
entity Ancient Roman senator
relation position held
['Quintus Fabius Vibulanus', 'position held', 'mayor of Massanet de Cabrenys'] ['Quintus Fabius Vibulanus', 'position held', 'Ancient Roman senator']
ASK WHERE { resource:Quintus_Fabius_Vibulanus property:position_held resource:Ancient_Roman_senator . resource:Quintus_Fabius_Vibulanus property:position_held resource:mayor_of_Massanet_de_Cabrenys }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11944236 Q4997402
P27
Q15617994
USER
Is Quim Marqués an inhabitant of Buna Independent School District ?
(Q11944236,P27,Q4997402)
action is_in
entity Q4997402
action find
entity Q11944236
relation P27
['Q11944236', 'P27', 'Q4997402']
ASK WHERE { resource:Q11944236 property:P27 resource:Q4997402 }
Quim Marqués Buna Independent School District
action is_in
entity Buna Independent School District
action find
entity Quim Marqués
relation country of citizenship
['Quim Marqués', 'country of citizenship', 'Buna Independent School District']
ASK WHERE { resource:Quim_Marqués property:country_of_citizenship resource:Buna_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q11944236,P27,Q4997402)
action is_in
entity Q4997402
action find
entity Q11944236
relation P27
[ANSWER]
['Q11944236', 'P27', 'Q4997402']
ASK WHERE { resource:Q11944236 property:P27 resource:Q4997402 }
No
action is_in
entity Buna Independent School District
action find
entity Quim Marqués
relation country of citizenship
['Quim Marqués', 'country of citizenship', 'Buna Independent School District']
ASK WHERE { resource:Quim_Marqués property:country_of_citizenship resource:Buna_Independent_School_District }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q527157 Q677935
P276
Q1190554
USER
Which events are situated at Veii or Kuwait International Airport ?
OR((c(Q1190554),P276,Q677935), (c(Q1190554),P276,Q527157))
action filter_type
action union
action find_reverse
entity Q677935
relation P276
action find_reverse
entity Q527157
relation P276
type Q1190554
{'OR': [[{'concept': 'Q1190554'}, 'P276', 'Q677935'], [{'concept': 'Q1190554'}, 'P276', 'Q527157']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P276 resource:Q677935 } UNION { ?y property:P276 resource:Q527157 } } . ?y rdf:type ontology:Q1190554 }
Kuwait International Airport Veii
action filter_type
action union
action find_reverse
entity Veii
relation location
action find_reverse
entity Kuwait International Airport
relation location
type event
{'OR': [[{'concept': 'event'}, 'location', 'Veii'], [{'concept': 'event'}, 'location', 'Kuwait International Airport']]}
SELECT DISTINCT ?y WHERE { { { ?y property:location resource:Veii } UNION { ?y property:location resource:Kuwait_International_Airport } } . ?y rdf:type ontology:event }
[]
event
Q3296462 Q540205
SYSTEM
British Airways Flight 149, Battle of Veii
Q3296462 Q540205
OR((c(Q1190554),P276,Q677935), (c(Q1190554),P276,Q527157))
action filter_type
action union
action find_reverse
entity Q677935
relation P276
action find_reverse
entity Q527157
relation P276
type Q1190554
[ANSWERS] are situated at Veii or Kuwait International Airport
{'OR': [[{'concept': 'Q1190554'}, 'P276', 'Q677935'], [{'concept': 'Q1190554'}, 'P276', 'Q527157']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P276 resource:Q677935 } UNION { ?y property:P276 resource:Q527157 } } . ?y rdf:type ontology:Q1190554 }
British Airways Flight 149 Battle of Veii
British Airways Flight 149 and Battle of Veii are situated at Veii or Kuwait International Airport
British Airways Flight 149 Battle of Veii
action filter_type
action union
action find_reverse
entity Veii
relation location
action find_reverse
entity Kuwait International Airport
relation location
type event
{'OR': [[{'concept': 'event'}, 'location', 'Veii'], [{'concept': 'event'}, 'location', 'Kuwait International Airport']]}
SELECT DISTINCT ?y WHERE { { { ?y property:location resource:Veii } UNION { ?y property:location resource:Kuwait_International_Airport } } . ?y rdf:type ontology:event }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6766169 Q11944236
P27
Q15617994
USER
Which administrative territories do Quim Marqués or Marjan Smit belong to ?
OR((Q11944236,P27,c(Q15617994)), (Q6766169,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11944236
relation P27
action find
entity Q6766169
relation P27
type Q15617994
{'OR': [['Q11944236', 'P27', {'concept': 'Q15617994'}], ['Q6766169', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q11944236 property:P27 ?j } UNION { resource:Q6766169 property:P27 ?j } } }
Marjan Smit Quim Marqués
action filter_type
action union
action find
entity Quim Marqués
relation country of citizenship
action find
entity Marjan Smit
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Quim Marqués', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marjan Smit', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Quim_Marqués property:country_of_citizenship ?j } UNION { resource:Marjan_Smit property:country_of_citizenship ?j } } }
[]
designation for an administrative territorial entity
Q29 Q29999
SYSTEM
Spain, Kingdom of the Netherlands
Q29 Q29999
OR((Q11944236,P27,c(Q15617994)), (Q6766169,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11944236
relation P27
action find
entity Q6766169
relation P27
type Q15617994
Quim Marqués or Marjan Smit belong to [ANSWERS]
{'OR': [['Q11944236', 'P27', {'concept': 'Q15617994'}], ['Q6766169', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q11944236 property:P27 ?j } UNION { resource:Q6766169 property:P27 ?j } } }
Spain Kingdom of the Netherlands
Quim Marqués or Marjan Smit belong to Spain and Kingdom of the Netherlands
Spain Kingdom of the Netherlands
action filter_type
action union
action find
entity Quim Marqués
relation country of citizenship
action find
entity Marjan Smit
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Quim Marqués', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marjan Smit', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Quim_Marqués property:country_of_citizenship ?j } UNION { resource:Marjan_Smit property:country_of_citizenship ?j } } }
[]
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 a diplomatic relationship with atleast 60 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 60
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { ?q property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?r >= 60 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 60
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { ?q property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?r >= 60 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 60
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { ?q property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?r >= 60 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 60
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { ?q property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?r >= 60 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with atleast 95 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 95
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?a property:P530 ?j } GROUP BY ?a } . FILTER ( ?c >= 95 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 95
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?j } GROUP BY ?a } . FILTER ( ?c >= 95 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 95
[ANSWERS] are known to have diplomatic connections with atleast 95 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 . ?a property:P530 ?j } GROUP BY ?a } . FILTER ( ?c >= 95 ) }
Germany Australia
Germany and Australia are known to have diplomatic connections with atleast 95 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 95
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?j } GROUP BY ?a } . FILTER ( ?c >= 95 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2062776 Q20056508
P17
Q1048835
USER
Which political territories are Ancient Roman senator or City of Tea Tree Gully situated in ?
OR((Q20056508,P17,c(Q1048835)), (Q2062776,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q20056508
relation P17
action find
entity Q2062776
relation P17
type Q1048835
{'OR': [['Q20056508', 'P17', {'concept': 'Q1048835'}], ['Q2062776', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2062776 property:P17 ?h } UNION { resource:Q20056508 property:P17 ?h } } . ?h rdf:type ontology:Q1048835 }
City of Tea Tree Gully Ancient Roman senator
action filter_type
action union
action find
entity Ancient Roman senator
relation country
action find
entity City of Tea Tree Gully
relation country
type political territorial entity
{'OR': [['Ancient Roman senator', 'country', {'concept': 'political territorial entity'}], ['City of Tea Tree Gully', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:City_of_Tea_Tree_Gully property:country ?h } UNION { resource:Ancient_Roman_senator property:country ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1747689 Q408
SYSTEM
Ancient Rome, Australia
Q1747689 Q408
OR((Q20056508,P17,c(Q1048835)), (Q2062776,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q20056508
relation P17
action find
entity Q2062776
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q20056508', 'P17', {'concept': 'Q1048835'}], ['Q2062776', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2062776 property:P17 ?h } UNION { resource:Q20056508 property:P17 ?h } } . ?h rdf:type ontology:Q1048835 }
Ancient Rome Australia
Which political territories are Ancient Roman senator or City of Tea Tree Gully situated in
Ancient Rome Australia
action filter_type
action union
action find
entity Ancient Roman senator
relation country
action find
entity City of Tea Tree Gully
relation country
type political territorial entity
{'OR': [['Ancient Roman senator', 'country', {'concept': 'political territorial entity'}], ['City of Tea Tree Gully', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:City_of_Tea_Tree_Gully property:country ?h } UNION { resource:Ancient_Roman_senator property:country ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]