Simple Question (Direct)
Simple Question
Q18638200
P641
Q349
USER
Which sport did Masih Zahedi participate in ?
(Q18638200,P641,c(Q349))
action filter_type
action find
entity Q18638200
relation P641
type Q349
['Q18638200', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q18638200 property:P641 ?r . ?r rdf:type ontology:Q349 }
Masih Zahedi
action filter_type
action find
entity Masih Zahedi
relation sport
type sport
['Masih Zahedi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Masih_Zahedi property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18638200,P641,c(Q349))
action filter_type
action find
entity Q18638200
relation P641
type Q349
Masih Zahedi participated in [ANSWER]
['Q18638200', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q18638200 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
Masih Zahedi participated in association football
association football
action filter_type
action find
entity Masih Zahedi
relation sport
type sport
['Masih Zahedi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Masih_Zahedi property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18638200
P19
Q56061
USER
Which administrative territory is the place of birth of Masih Zahedi ?
(Q18638200,P19,c(Q56061))
action filter_type
action find
entity Q18638200
relation P19
type Q56061
['Q18638200', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q18638200 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Masih Zahedi
action filter_type
action find
entity Masih Zahedi
relation place of birth
type administrative territorial entity
['Masih Zahedi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Masih_Zahedi property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q36529
SYSTEM
Karaj
Q36529
(Q18638200,P19,c(Q56061))
action filter_type
action find
entity Q18638200
relation P19
type Q56061
[ANSWER] is the place of birth of Masih Zahedi
['Q18638200', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q18638200 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Karaj
Karaj is the place of birth of Masih Zahedi
Karaj
action filter_type
action find
entity Masih Zahedi
relation place of birth
type administrative territorial entity
['Masih Zahedi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Masih_Zahedi property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36529
P361
Q137535
USER
What is that administrative territory a portion of ?
(Q36529,P361,c(Q137535))
action filter_type
action find
entity Q36529
relation P361
type Q137535
['Q36529', 'P361', {'concept': 'Q137535'}]
SELECT DISTINCT ?u WHERE { resource:Q36529 property:P361 ?u . ?u rdf:type ontology:Q137535 }
Karaj
action filter_type
action find
entity Karaj
relation part of
type county of Iran
['Karaj', 'part of', {'concept': 'county of Iran'}]
SELECT DISTINCT ?u WHERE { resource:Karaj property:part_of ?u . ?u rdf:type ontology:county_of_Iran }
[]
county of Iran
Q1264551
SYSTEM
Karaj County
Q1264551
(Q36529,P361,c(Q137535))
action filter_type
action find
entity Q36529
relation P361
type Q137535
That administrative territory a portion of is in [ANSWER]
['Q36529', 'P361', {'concept': 'Q137535'}]
SELECT DISTINCT ?u WHERE { resource:Q36529 property:P361 ?u . ?u rdf:type ontology:Q137535 }
Karaj County
That administrative territory a portion of is in Karaj County
Karaj County
action filter_type
action find
entity Karaj
relation part of
type county of Iran
['Karaj', 'part of', {'concept': 'county of Iran'}]
SELECT DISTINCT ?u WHERE { resource:Karaj property:part_of ?u . ?u rdf:type ontology:county_of_Iran }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36529
P36
Q1344695
USER
Which province of Iran is that administrative territory the capital of ?
(c(Q1344695),P36,Q1264551)
action filter_type
action find_reverse
entity Q36529
relation P36
type Q1344695
[{'concept': 'Q1344695'}, 'P36', 'Q1264551']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q36529 . ?q rdf:type ontology:Q1344695 }
Karaj
action filter_type
action find_reverse
entity Karaj
relation capital
type province of Iran
[{'concept': 'province of Iran'}, 'capital', 'Karaj County']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Karaj . ?q rdf:type ontology:province_of_Iran }
[]
province of Iran
Q392522
SYSTEM
Alborz Province
Q392522
(c(Q1344695),P36,Q1264551)
action filter_type
action find_reverse
entity Q36529
relation P36
type Q1344695
Is [ANSWER] is that administrative territory the capital of
[{'concept': 'Q1344695'}, 'P36', 'Q1264551']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q36529 . ?q rdf:type ontology:Q1344695 }
Alborz Province
Is Alborz Province is that administrative territory the capital of
Alborz Province
action filter_type
action find_reverse
entity Karaj
relation capital
type province of Iran
[{'concept': 'province of Iran'}, 'capital', 'Karaj County']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Karaj . ?q rdf:type ontology:province_of_Iran }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027315
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as their registry harbour than Madona ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027315
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?x ) WHERE { ?p property:P532 ?a . ?p rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q24027315 property:P532 ?b . ?b rdf:type ontology:Q2235308 } } . FILTER ( ?x > ?k ) }
Madona
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Madona
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?x ) WHERE { ?p property:port_of_registry ?a . ?p rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Madona property:port_of_registry ?b . ?b rdf:type ontology:ship_type } } . FILTER ( ?x > ?k ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027315
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as their registry harbour than Madona
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?x ) WHERE { ?p property:P532 ?a . ?p rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q24027315 property:P532 ?b . ?b rdf:type ontology:Q2235308 } } . FILTER ( ?x > ?k ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura, SS Maxim Gorkiy and RMS Aquitania have more number of administrative territories as their registry harbour than Madona
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Madona
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?x ) WHERE { ?p property:port_of_registry ?a . ?p rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Madona property:port_of_registry ?b . ?b rdf:type ontology:ship_type } } . FILTER ( ?x > ?k ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2596850 Q468026 Q35462
P532
Q56061
USER
Which administrative territories are the ports of registry of MS Azura, SS Maxim Gorkiy and RMS Aquitania ?
(Q2596850,P532,c(Q56061)) (Q468026,P532,c(Q56061)) (Q35462,P532,c(Q56061))
action union
action filter_type
action find
entity Q2596850
relation P532
type Q56061
action filter_type
action find
entity Q468026
relation P532
type Q56061
action filter_type
action find
entity Q35462
relation P532
type Q56061
['Q2596850', 'P532', {'concept': 'Q56061'}] ['Q468026', 'P532', {'concept': 'Q56061'}] ['Q35462', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q56061 . resource:Q2596850 property:P532 ?a } UNION { resource:Q468026 property:P532 ?a . ?a rdf:type ontology:Q56061 } }
MS Azura SS Maxim Gorkiy RMS Aquitania
action union
action filter_type
action find
entity MS Azura
relation port of registry
type administrative territorial entity
action filter_type
action find
entity SS Maxim Gorkiy
relation port of registry
type administrative territorial entity
action filter_type
action find
entity RMS Aquitania
relation port of registry
type administrative territorial entity
['MS Azura', 'port of registry', {'concept': 'administrative territorial entity'}] ['SS Maxim Gorkiy', 'port of registry', {'concept': 'administrative territorial entity'}] ['RMS Aquitania', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . resource:MS_Azura property:port_of_registry ?a } UNION { resource:SS_Maxim_Gorkiy property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q1874 Q79848 Q24826
SYSTEM
Odessa, Southampton, Liverpool
Q30985 Q79848 Q2467 Q1874 Q24826
(Q2596850,P532,c(Q56061)) (Q468026,P532,c(Q56061)) (Q35462,P532,c(Q56061))
action union
action filter_type
action find
entity Q2596850
relation P532
type Q56061
action filter_type
action find
entity Q468026
relation P532
type Q56061
action filter_type
action find
entity Q35462
relation P532
type Q56061
[ANSWERS] are the ports of registry of MS Azura, SS Maxim Gorkiy and RMS Aquitania
['Q2596850', 'P532', {'concept': 'Q56061'}] ['Q468026', 'P532', {'concept': 'Q56061'}] ['Q35462', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q56061 . resource:Q2596850 property:P532 ?a } UNION { resource:Q468026 property:P532 ?a . ?a rdf:type ontology:Q56061 } }
Hamilton Southampton Nassau Odessa Liverpool
Odessa, Southampton and Liverpool are the ports of registry of MS Azura, SS Maxim Gorkiy and RMS Aquitania
Odessa Southampton Liverpool
action union
action filter_type
action find
entity MS Azura
relation port of registry
type administrative territorial entity
action filter_type
action find
entity SS Maxim Gorkiy
relation port of registry
type administrative territorial entity
action filter_type
action find
entity RMS Aquitania
relation port of registry
type administrative territorial entity
['MS Azura', 'port of registry', {'concept': 'administrative territorial entity'}] ['SS Maxim Gorkiy', 'port of registry', {'concept': 'administrative territorial entity'}] ['RMS Aquitania', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . resource:MS_Azura property:port_of_registry ?a } UNION { resource:SS_Maxim_Gorkiy property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q79848
P206
Q355304
USER
Which watercourses are located in the neighbourhood of that administrative territory ?
(Q79848,P206,c(Q355304))
action filter_type
action find
entity Q79848
relation P206
type Q355304
['Q79848', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q79848 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Southampton
action filter_type
action find
entity Southampton
relation located next to body of water
type watercourse
['Southampton', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Southampton property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q24826
SYSTEM
Did you mean Liverpool ?
Q1874 Q79848 Q24826
(Q1874,P206,c(Q355304)) (Q79848,P206,c(Q355304)) (Q24826,P206,c(Q355304))
[ANSWER]
['Q1874', 'P206', {'concept': 'Q355304'}] ['Q79848', 'P206', {'concept': 'Q355304'}] ['Q24826', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q79848 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Odessa Southampton Liverpool
Did you mean Liverpool ?
Liverpool
['Odessa', 'located next to body of water', {'concept': 'watercourse'}] ['Southampton', 'located next to body of water', {'concept': 'watercourse'}] ['Liverpool', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Southampton property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
No, I meant Southampton. Could you tell me the answer for that?
(Q79848,P206,c(Q355304))
Q79848
['Q79848', 'P206', {'concept': 'Q355304'}]
['Southampton', 'located next to body of water', {'concept': 'watercourse'}]
[]
Q7337528 Q2677000
SYSTEM
River Itchen, River Test
Q7337528 Q2677000
(Q79848,P206,c(Q355304))
action filter_type
action find
entity Q79848
relation P206
type Q355304
[ANSWERS] are located in the neighbourhood of that administrative territory
['Q79848', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q79848 property:P206 ?o . ?o rdf:type ontology:Q355304 }
River Itchen River Test
River Itchen and River Test are located in the neighbourhood of that administrative territory
River Itchen River Test
action filter_type
action find
entity Southampton
relation located next to body of water
type watercourse
['Southampton', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Southampton property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2230524
P974
Q15324
USER
Do Amur Liman have those watercourses as their tributary ?
(Q2230524,P974,Q7337528) (Q2230524,P974,Q2677000)
action is_in
entity prev_answer
action find
entity Q2230524
relation P974
['Q2230524', 'P974', 'Q7337528'] ['Q2230524', 'P974', 'Q2677000']
ASK WHERE { resource:Q2230524 property:P974 ?h . VALUES ( ?h ) { ( resource:Q7337528 ) ( resource:Q2677000 ) } }
Amur Liman
action is_in
entity prev_answer
action find
entity Amur Liman
relation tributary
['Amur Liman', 'tributary', 'River Itchen'] ['Amur Liman', 'tributary', 'River Test']
ASK WHERE { resource:Amur_Liman property:tributary ?h . VALUES ( ?h ) { ( resource:River_Itchen ) ( resource:River_Test ) } }
[]
body of water
SYSTEM
NO
(Q2230524,P974,Q7337528) (Q2230524,P974,Q2677000)
action is_in
entity prev_answer
action find
entity Q2230524
relation P974
[ANSWER]
['Q2230524', 'P974', 'Q7337528'] ['Q2230524', 'P974', 'Q2677000']
ASK WHERE { resource:Q2230524 property:P974 ?h . VALUES ( ?h ) { ( resource:Q7337528 ) ( resource:Q2677000 ) } }
No
action is_in
entity prev_answer
action find
entity Amur Liman
relation tributary
['Amur Liman', 'tributary', 'River Itchen'] ['Amur Liman', 'tributary', 'River Test']
ASK WHERE { resource:Amur_Liman property:tributary ?h . VALUES ( ?h ) { ( resource:River_Itchen ) ( resource:River_Test ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q408 Q36529
P530 P17
Q15617994
USER
Which administrative territories are Karaj present in and have diplomatic relationships with Australia ?
AND((Q36529,P17,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q36529
relation P17
action find
entity Q408
relation P530
type Q15617994
{'AND': [['Q36529', 'P17', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q36529 property:P17 ?k . resource:Q408 property:P530 ?k . ?k rdf:type ontology:Q15617994 }
Australia Karaj
action filter_type
action intersection
action find
entity Karaj
relation country
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Karaj', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Karaj property:country ?k . resource:Australia property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
AND((Q36529,P17,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q36529
relation P17
action find
entity Q408
relation P530
type Q15617994
Karaj are have in [ANSWER]
{'AND': [['Q36529', 'P17', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q36529 property:P17 ?k . resource:Q408 property:P530 ?k . ?k rdf:type ontology:Q15617994 }
Iran
Karaj are have in Iran
Iran
action filter_type
action intersection
action find
entity Karaj
relation country
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Karaj', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Karaj property:country ?k . resource:Australia property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2668411 Q36529
P17
Q15617994
USER
Which administrative territories are Karaj or Pisoderi situated in ?
OR((Q36529,P17,c(Q15617994)), (Q2668411,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q36529
relation P17
action find
entity Q2668411
relation P17
type Q15617994
{'OR': [['Q36529', 'P17', {'concept': 'Q15617994'}], ['Q2668411', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?d property:P17 ?v . VALUES ( ?d ) { ( resource:Q36529 ) ( resource:Q2668411 ) } } . ?v rdf:type ontology:Q15617994 }
Pisoderi Karaj
action filter_type
action union
action find
entity Karaj
relation country
action find
entity Pisoderi
relation country
type designation for an administrative territorial entity
{'OR': [['Karaj', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pisoderi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?d property:country ?v . VALUES ( ?d ) { ( resource:Karaj ) ( resource:Pisoderi ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794 Q41
SYSTEM
Iran, Greece
Q794 Q41
OR((Q36529,P17,c(Q15617994)), (Q2668411,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q36529
relation P17
action find
entity Q2668411
relation P17
type Q15617994
Karaj or Pisoderi are situated in [ANSWERS]
{'OR': [['Q36529', 'P17', {'concept': 'Q15617994'}], ['Q2668411', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?d property:P17 ?v . VALUES ( ?d ) { ( resource:Q36529 ) ( resource:Q2668411 ) } } . ?v rdf:type ontology:Q15617994 }
Iran Greece
Karaj or Pisoderi are situated in Iran and Greece
Iran Greece
action filter_type
action union
action find
entity Karaj
relation country
action find
entity Pisoderi
relation country
type designation for an administrative territorial entity
{'OR': [['Karaj', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pisoderi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?d property:country ?v . VALUES ( ?d ) { ( resource:Karaj ) ( resource:Pisoderi ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2668411
P706
Q207299
USER
What is the location where Pisoderi is located?
(Q794,P706,c(Q207299)) (Q41,P706,c(Q207299))
action filter_type
action find
entity Q2668411
relation P706
type Q207299
['Q794', 'P706', {'concept': 'Q207299'}] ['Q41', 'P706', {'concept': 'Q207299'}]
SELECT DISTINCT ?r WHERE { resource:Q2668411 property:P706 ?r . ?r rdf:type ontology:Q207299 }
Pisoderi
action filter_type
action find
entity Pisoderi
relation located on terrain feature
type administrative region of Greece
['Iran', 'located on terrain feature', {'concept': 'administrative region of Greece'}] ['Greece', 'located on terrain feature', {'concept': 'administrative region of Greece'}]
SELECT DISTINCT ?r WHERE { resource:Pisoderi property:located_on_terrain_feature ?r . ?r rdf:type ontology:administrative_region_of_Greece }
[]
administrative region of Greece
Q165408
SYSTEM
West Macedonia Region
Q165408
(Q794,P706,c(Q207299)) (Q41,P706,c(Q207299))
action filter_type
action find
entity Q2668411
relation P706
type Q207299
The location Pisoderi is located is in [ANSWER]
['Q794', 'P706', {'concept': 'Q207299'}] ['Q41', 'P706', {'concept': 'Q207299'}]
SELECT DISTINCT ?r WHERE { resource:Q2668411 property:P706 ?r . ?r rdf:type ontology:Q207299 }
West Macedonia Region
The location Pisoderi is located is in West Macedonia Region
West Macedonia Region
action filter_type
action find
entity Pisoderi
relation located on terrain feature
type administrative region of Greece
['Iran', 'located on terrain feature', {'concept': 'administrative region of Greece'}] ['Greece', 'located on terrain feature', {'concept': 'administrative region of Greece'}]
SELECT DISTINCT ?r WHERE { resource:Pisoderi property:located_on_terrain_feature ?r . ?r rdf:type ontology:administrative_region_of_Greece }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7406945 Q2668411
P27 P17
Q15617994
USER
Which administrative territories are Pisoderi located in or are Salvino Azzopardi an inhabitant of ?
OR((Q2668411,P17,c(Q15617994)), (Q7406945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2668411
relation P17
action find
entity Q7406945
relation P27
type Q15617994
{'OR': [['Q2668411', 'P17', {'concept': 'Q15617994'}], ['Q7406945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q7406945 property:P27 ?x } UNION { resource:Q2668411 property:P17 ?x } } }
Salvino Azzopardi Pisoderi
action filter_type
action union
action find
entity Pisoderi
relation country
action find
entity Salvino Azzopardi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pisoderi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Salvino Azzopardi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Salvino_Azzopardi property:country_of_citizenship ?x } UNION { resource:Pisoderi property:country ?x } } }
[]
designation for an administrative territorial entity
Q41 Q233
SYSTEM
Greece, Malta
Q41 Q233
OR((Q2668411,P17,c(Q15617994)), (Q7406945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2668411
relation P17
action find
entity Q7406945
relation P27
type Q15617994
Pisoderi are located in [ANSWERS] or are Salvino Azzopardi an inhabitant of
{'OR': [['Q2668411', 'P17', {'concept': 'Q15617994'}], ['Q7406945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q7406945 property:P27 ?x } UNION { resource:Q2668411 property:P17 ?x } } }
Greece Malta
Pisoderi are located in Greece and Malta or are Salvino Azzopardi an inhabitant of
Greece Malta
action filter_type
action union
action find
entity Pisoderi
relation country
action find
entity Salvino Azzopardi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pisoderi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Salvino Azzopardi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Salvino_Azzopardi property:country_of_citizenship ?x } UNION { resource:Pisoderi property:country ?x } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have ambassadorial relations with those ones ?
(Q38,P530,Q41) (Q38,P530,Q233)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q41'] ['Q38', 'P530', 'Q233']
ASK WHERE { resource:Q38 property:P530 ?h . VALUES ( ?h ) { ( resource:Q41 ) ( resource:Q233 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Greece'] ['Italy', 'diplomatic relation', 'Malta']
ASK WHERE { resource:Italy property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Greece ) ( resource:Malta ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q41) (Q38,P530,Q233)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q41'] ['Q38', 'P530', 'Q233']
ASK WHERE { resource:Q38 property:P530 ?h . VALUES ( ?h ) { ( resource:Q41 ) ( resource:Q233 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Greece'] ['Italy', 'diplomatic relation', 'Malta']
ASK WHERE { resource:Italy property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Greece ) ( resource:Malta ) } }
[]