Simple Question (Direct)
Simple Question
Q927933
P1376
Q13220204
USER
Which administrative country subdivision has Tarapoto as its capital ?
(Q927933,P1376,c(Q13220204))
action filter_type
action find
entity Q927933
relation P1376
type Q13220204
['Q927933', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q13220204 . resource:Q927933 property:P1376 ?e }
Tarapoto
action filter_type
action find
entity Tarapoto
relation capital of
type second-level administrative country subdivision
['Tarapoto', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:second-level_administrative_country_subdivision . resource:Tarapoto property:capital_of ?e }
[]
second-level administrative country subdivision
Q588491
SYSTEM
San Martín Province
Q588491
(Q927933,P1376,c(Q13220204))
action filter_type
action find
entity Q927933
relation P1376
type Q13220204
The [ANSWER] has Tarapoto as its capital
['Q927933', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q13220204 . resource:Q927933 property:P1376 ?e }
San Martín Province
The San Martín Province has Tarapoto as its capital
San Martín Province
action filter_type
action find
entity Tarapoto
relation capital of
type second-level administrative country subdivision
['Tarapoto', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:second-level_administrative_country_subdivision . resource:Tarapoto property:capital_of ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q588491
P36
Q56061
USER
Which administrative territory is known as the capital of that administrative country subdivision ?
(Q588491,P36,c(Q56061))
action filter_type
action find
entity Q588491
relation P36
type Q56061
['Q588491', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q588491 property:P36 ?o . ?o rdf:type ontology:Q56061 }
San Martín Province
action filter_type
action find
entity San Martín Province
relation capital
type administrative territorial entity
['San Martín Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:San_Martín_Province property:capital ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q927933
SYSTEM
Tarapoto
Q927933
(Q588491,P36,c(Q56061))
action filter_type
action find
entity Q588491
relation P36
type Q56061
[ANSWER] is known as the capital of that administrative country subdivision
['Q588491', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q588491 property:P36 ?o . ?o rdf:type ontology:Q56061 }
Tarapoto
Tarapoto is known as the capital of that administrative country subdivision
Tarapoto
action filter_type
action find
entity San Martín Province
relation capital
type administrative territorial entity
['San Martín Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:San_Martín_Province property:capital ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have their base port as exactly 2 administrative territories ?
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { ?e property:P532 ?g . ?g rdf:type ontology:Q56061 . ?e rdf:type ontology:Q2235308 } GROUP BY ?e } . FILTER ( ?r = 2 ) }
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { ?e property:port_of_registry ?g . ?g rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:ship_type } GROUP BY ?e } . FILTER ( ?r = 2 ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q33209
SYSTEM
MS Azura, SS Maxim Gorkiy, Mary Celeste
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWERS] have their base port as exactly 2 administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { ?e property:P532 ?g . ?g rdf:type ontology:Q56061 . ?e rdf:type ontology:Q2235308 } GROUP BY ?e } . FILTER ( ?r = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
MS Azura, SS Maxim Gorkiy and Mary Celeste have their base port as exactly 2 administrative territories
MS Azura SS Maxim Gorkiy Mary Celeste
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?r ) WHERE { ?e property:port_of_registry ?g . ?g rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:ship_type } GROUP BY ?e } . FILTER ( ?r = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q861548 Q927933
P17
Q15617994
USER
Which administrative territories are Tarapoto or Florida State University located in ?
OR((Q927933,P17,c(Q15617994)), (Q861548,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q927933
relation P17
action find
entity Q861548
relation P17
type Q15617994
{'OR': [['Q927933', 'P17', {'concept': 'Q15617994'}], ['Q861548', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q927933 property:P17 ?m } UNION { resource:Q861548 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Florida State University Tarapoto
action filter_type
action union
action find
entity Tarapoto
relation country
action find
entity Florida State University
relation country
type designation for an administrative territorial entity
{'OR': [['Tarapoto', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Florida State University', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Tarapoto property:country ?m } UNION { resource:Florida_State_University property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419 Q30
SYSTEM
Peru, United States of America
Q419 Q30
OR((Q927933,P17,c(Q15617994)), (Q861548,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q927933
relation P17
action find
entity Q861548
relation P17
type Q15617994
Tarapoto or Florida State University are located in [ANSWERS]
{'OR': [['Q927933', 'P17', {'concept': 'Q15617994'}], ['Q861548', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q927933 property:P17 ?m } UNION { resource:Q861548 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Peru United States of America
Tarapoto or Florida State University are located in Peru and United States of America
Peru United States of America
action filter_type
action union
action find
entity Tarapoto
relation country
action find
entity Florida State University
relation country
type designation for an administrative territorial entity
{'OR': [['Tarapoto', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Florida State University', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Tarapoto property:country ?m } UNION { resource:Florida_State_University property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q13220204 Q515 Q20667921
USER
Which administrative country subdivisions are the sister cities of max number of cities or french administrative divisions ?
(c(Q515)|c(Q20667921),P190,c(Q13220204))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?i rdf:type ?o } GROUP BY ?p } } . FILTER ( ?n = ?g ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?m } }
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?i rdf:type ?o } GROUP BY ?p } } . FILTER ( ?n = ?g ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?m } }
[]
second-level administrative country subdivision city type of french administrative division
Q25444
SYSTEM
Funchal
Q25444
(c(Q515)|c(Q20667921),P190,c(Q13220204))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q20667921
[ANSWER] is the sister cities of max number of cities or french administrative divisions
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?i rdf:type ?o } GROUP BY ?p } } . FILTER ( ?n = ?g ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?m } }
Funchal
Funchal is the sister cities of max number of cities or french administrative divisions
Funchal
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?i rdf:type ?o } GROUP BY ?p } } . FILTER ( ?n = ?g ) . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?u rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?m } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P6
Q502895
USER
How many people are the heads of the government of United States of America ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q30 property:P6 ?k . ?k rdf:type ontology:Q502895 }
United States of America
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:United_States_of_America property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
44
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q30 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:United_States_of_America property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q5113727
P6
Q502895
USER
And also tell me about Ghidigeni?
(Q5113727,P6,c(Q502895))
action count
action filter_type
action find
entity Q5113727
relation P6
type Q502895
['Q5113727', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q5113727 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Ghidigeni
action count
action filter_type
action find
entity Ghidigeni
relation head of government
type common name
['Ghidigeni', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Ghidigeni property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q24007762
(Q5113727,P6,c(Q502895))
action count
action filter_type
action find
entity Q5113727
relation P6
type Q502895
[ANSWER]
['Q5113727', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q5113727 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Eugen Tăbăcaru
1
action count
action filter_type
action find
entity Ghidigeni
relation head of government
type common name
['Ghidigeni', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Ghidigeni property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q800147
Q502895
USER
And also tell me about Chuchelna?
(Q800147,P6,c(Q502895))
action count
action filter_type
action find
entity Q800147
relation P6
type Q502895
['Q800147', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q800147 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Chuchelna
action count
action filter_type
action find
entity Chuchelna
relation head of government
type common name
['Chuchelna', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Chuchelna property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q800147,P6,c(Q502895))
action count
action filter_type
action find
entity Q800147
relation P6
type Q502895
[ANSWER]
['Q800147', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q800147 property:P6 ?z . ?z rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Chuchelna
relation head of government
type common name
['Chuchelna', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Chuchelna property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P123
Q166142
USER
Which applications were issued by United States of America ?
(c(Q166142),P123,Q30)
action filter_type
action find_reverse
entity Q30
relation P123
type Q166142
[{'concept': 'Q166142'}, 'P123', 'Q30']
SELECT DISTINCT ?q WHERE { ?q property:P123 resource:Q30 . ?q rdf:type ontology:Q166142 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q property:publisher resource:United_States_of_America . ?q rdf:type ontology:application }
[]
application
Q862542 Q3048269
SYSTEM
Star Wars: Republic Commando, The Lost Crown: A Ghost-Hunting Adventure
Q862542 Q3048269
(c(Q166142),P123,Q30)
action filter_type
action find_reverse
entity Q30
relation P123
type Q166142
[ANSWERS] were issued by United States of America
[{'concept': 'Q166142'}, 'P123', 'Q30']
SELECT DISTINCT ?q WHERE { ?q property:P123 resource:Q30 . ?q rdf:type ontology:Q166142 }
Star Wars: Republic Commando The Lost Crown: A Ghost-Hunting Adventure
Star Wars: Republic Commando and The Lost Crown: A Ghost-Hunting Adventure were issued by United States of America
Star Wars: Republic Commando The Lost Crown: A Ghost-Hunting Adventure
action filter_type
action find_reverse
entity United States of America
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q property:publisher resource:United_States_of_America . ?q rdf:type ontology:application }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P859
Q939954
USER
Who did that administrative territory sponsor ?
(c(Q939954),P859,Q862542) (c(Q939954),P859,Q3048269)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
[{'concept': 'Q939954'}, 'P859', 'Q862542'] [{'concept': 'Q939954'}, 'P859', 'Q3048269']
SELECT DISTINCT ?h WHERE { ?h property:P859 resource:Q30 . ?h rdf:type ontology:Q939954 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'Star Wars: Republic Commando'] [{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'The Lost Crown: A Ghost-Hunting Adventure']
SELECT DISTINCT ?h WHERE { ?h property:sponsor resource:United_States_of_America . ?h rdf:type ontology:Magnetic_confinement_fusion }
[]
Magnetic confinement fusion
Q191788
SYSTEM
ITER
Q191788
(c(Q939954),P859,Q862542) (c(Q939954),P859,Q3048269)
action filter_type
action find_reverse
entity Q30
relation P859
type Q939954
That administrative territory sponsored by [ANSWER]
[{'concept': 'Q939954'}, 'P859', 'Q862542'] [{'concept': 'Q939954'}, 'P859', 'Q3048269']
SELECT DISTINCT ?h WHERE { ?h property:P859 resource:Q30 . ?h rdf:type ontology:Q939954 }
ITER
That administrative territory sponsored by ITER
ITER
action filter_type
action find_reverse
entity United States of America
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'Star Wars: Republic Commando'] [{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'The Lost Crown: A Ghost-Hunting Adventure']
SELECT DISTINCT ?h WHERE { ?h property:sponsor resource:United_States_of_America . ?h rdf:type ontology:Magnetic_confinement_fusion }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P610
Q14524493
USER
Which is the highest point of United States of America ?
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q14524493 . resource:Q30 property:P610 ?i }
United States of America
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:terrain . resource:United_States_of_America property:highest_point ?i }
[]
terrain
Q130018
SYSTEM
Denali
Q130018
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
The highest point of United States of America is the [ANSWER]
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q14524493 . resource:Q30 property:P610 ?i }
Denali
The highest point of United States of America is the Denali
Denali
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:terrain . resource:United_States_of_America property:highest_point ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P101
Q502895
USER
Which person has field of work as United States of America ?
(c(Q502895),P101,Q30)
action filter_type
action find_reverse
entity Q30
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q30']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P101 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United States of America']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:field_of_work resource:United_States_of_America }
[]
common name
Q498840
SYSTEM
David Janssen
Q498840
(c(Q502895),P101,Q30)
action filter_type
action find_reverse
entity Q30
relation P101
type Q502895
[ANSWER] has field of work as United States of America
[{'concept': 'Q502895'}, 'P101', 'Q30']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P101 resource:Q30 }
David Janssen
David Janssen has field of work as United States of America
David Janssen
action filter_type
action find_reverse
entity United States of America
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'United States of America']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:field_of_work resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25444
P47
Q56061
USER
Which administrative territory has a shared border with Funchal ?
(Q25444,P47,c(Q56061))
action filter_type
action find
entity Q25444
relation P47
type Q56061
['Q25444', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q25444 property:P47 ?k }
Funchal
action filter_type
action find
entity Funchal
relation shares border with
type administrative territorial entity
['Funchal', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Funchal property:shares_border_with ?k }
[]
administrative territorial entity
Q752123
SYSTEM
Santana
Q752123
(Q25444,P47,c(Q56061))
action filter_type
action find
entity Q25444
relation P47
type Q56061
[ANSWER] has a shared border with Funchal
['Q25444', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q25444 property:P47 ?k }
Santana
Santana has a shared border with Funchal
Santana
action filter_type
action find
entity Funchal
relation shares border with
type administrative territorial entity
['Funchal', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Funchal property:shares_border_with ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q752123 Q304464 Q15261019
P47
Q56061
USER
Does São Vicente and Narkan share a border with Q752123 ?
(Q752123,P47,Q304464) (Q752123,P47,Q15261019)
action is_in
entity Q752123
action intersection
action find_reverse
entity Q304464
relation P47
action find_reverse
entity Q15261019
relation P47
['Q752123', 'P47', 'Q304464'] ['Q752123', 'P47', 'Q15261019']
ASK WHERE { resource:Q752123 property:P47 resource:Q15261019 . resource:Q752123 property:P47 resource:Q304464 }
Santana São Vicente Narkan
action is_in
entity Santana
action intersection
action find_reverse
entity São Vicente
relation shares border with
action find_reverse
entity Narkan
relation shares border with
['Santana', 'shares border with', 'São Vicente'] ['Santana', 'shares border with', 'Narkan']
ASK WHERE { resource:Santana property:shares_border_with resource:Narkan . resource:Santana property:shares_border_with resource:São_Vicente }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q752123,P47,Q304464) (Q752123,P47,Q15261019)
action is_in
entity Q752123
action intersection
action find_reverse
entity Q304464
relation P47
action find_reverse
entity Q15261019
relation P47
[ANSWER]
['Q752123', 'P47', 'Q304464'] ['Q752123', 'P47', 'Q15261019']
ASK WHERE { resource:Q752123 property:P47 resource:Q15261019 . resource:Q752123 property:P47 resource:Q304464 }
YES and NO respectively
action is_in
entity Santana
action intersection
action find_reverse
entity São Vicente
relation shares border with
action find_reverse
entity Narkan
relation shares border with
['Santana', 'shares border with', 'São Vicente'] ['Santana', 'shares border with', 'Narkan']
ASK WHERE { resource:Santana property:shares_border_with resource:Narkan . resource:Santana property:shares_border_with resource:São_Vicente }
[]