Simple Question (Direct)
Simple Question
Q57476
P102
Q7210356
USER
Which party does James Michel belong to ?
(Q57476,P102,c(Q7210356))
action filter_type
action find
entity Q57476
relation P102
type Q7210356
['Q57476', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q57476 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
James Michel
action filter_type
action find
entity James Michel
relation member of political party
type political organization
['James Michel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:James_Michel property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q206395
SYSTEM
People's Party
Q206395
(Q57476,P102,c(Q7210356))
action filter_type
action find
entity Q57476
relation P102
type Q7210356
James Michel belongs to [ANSWER]
['Q57476', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q57476 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
People's Party
James Michel belongs to People's Party
People's Party
action filter_type
action find
entity James Michel
relation member of political party
type political organization
['James Michel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:James_Michel property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q206395
P17
Q15617994
USER
Which administrative territory does that political organization belong to ?
(Q206395,P17,c(Q15617994))
action filter_type
action find
entity Q206395
relation P17
type Q15617994
['Q206395', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q206395 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
People's Party
action filter_type
action find
entity People's Party
relation country
type designation for an administrative territorial entity
["People's Party", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:People's_Party property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1042
SYSTEM
Seychelles
Q1042
(Q206395,P17,c(Q15617994))
action filter_type
action find
entity Q206395
relation P17
type Q15617994
That political organization belongs to the [ANSWER]
['Q206395', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q206395 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Seychelles
That political organization belongs to the Seychelles
Seychelles
action filter_type
action find
entity People's Party
relation country
type designation for an administrative territorial entity
["People's Party", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:People's_Party property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26315201
Q15617994
USER
And what about The Georgian House?
(Q26315201,P17,c(Q15617994))
action filter_type
action find
entity Q26315201
relation P17
type Q15617994
['Q26315201', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q26315201 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
The Georgian House
action filter_type
action find
entity The Georgian House
relation country
type designation for an administrative territorial entity
['The Georgian House', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:The_Georgian_House property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26315201,P17,c(Q15617994))
action filter_type
action find
entity Q26315201
relation P17
type Q15617994
[ANSWER]
['Q26315201', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q26315201 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity The Georgian House
relation country
type designation for an administrative territorial entity
['The Georgian House', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:The_Georgian_House property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2381428 Q1042
P36
Q56061
USER
Which administrative territories are the capitals of Seychelles or Guanta Municipality ?
OR((Q1042,P36,c(Q56061)), (Q2381428,P36,c(Q56061)))
action filter_type
action union
action find
entity Q1042
relation P36
action find
entity Q2381428
relation P36
type Q56061
{'OR': [['Q1042', 'P36', {'concept': 'Q56061'}], ['Q2381428', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?g ) { ( resource:Q1042 ) ( resource:Q2381428 ) } . ?g property:P36 ?k } . ?k rdf:type ontology:Q56061 }
Guanta Municipality Seychelles
action filter_type
action union
action find
entity Seychelles
relation capital
action find
entity Guanta Municipality
relation capital
type administrative territorial entity
{'OR': [['Seychelles', 'capital', {'concept': 'administrative territorial entity'}], ['Guanta Municipality', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?g ) { ( resource:Seychelles ) ( resource:Guanta_Municipality ) } . ?g property:capital ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3940 Q3067120
SYSTEM
Victoria, Guanta
Q3940 Q3067120
OR((Q1042,P36,c(Q56061)), (Q2381428,P36,c(Q56061)))
action filter_type
action union
action find
entity Q1042
relation P36
action find
entity Q2381428
relation P36
type Q56061
[ANSWERS] are the capitals of Seychelles or Guanta Municipality
{'OR': [['Q1042', 'P36', {'concept': 'Q56061'}], ['Q2381428', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?g ) { ( resource:Q1042 ) ( resource:Q2381428 ) } . ?g property:P36 ?k } . ?k rdf:type ontology:Q56061 }
Victoria Guanta
Victoria and Guanta are the capitals of Seychelles or Guanta Municipality
Victoria Guanta
action filter_type
action union
action find
entity Seychelles
relation capital
action find
entity Guanta Municipality
relation capital
type administrative territorial entity
{'OR': [['Seychelles', 'capital', {'concept': 'administrative territorial entity'}], ['Guanta Municipality', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?g ) { ( resource:Seychelles ) ( resource:Guanta_Municipality ) } . ?g property:capital ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q515
USER
How many administrative territories and cities are twin towns of that administrative territory ?
(Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3067120,P190,c(Q56061)) (Q3067120,P190,c(Q515))
['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3067120', 'P190', {'concept': 'Q56061'}] ['Q3067120', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q3118752 property:P190 ?z } UNION { resource:Q3118752 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Guanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Guanta', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Guanta property:sister_city ?z } UNION { resource:Guanta property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
administrative territorial entity city
Quantitative|Count|Mult. entity type|Clarification
Q3940
SYSTEM
Did you mean Victoria ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q3118752 property:P190 ?z } UNION { resource:Q3118752 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
Did you mean Victoria ?
Victoria
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Guanta property:sister_city ?z } UNION { resource:Guanta property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3067120,P190,c(Q56061)) (Q3067120,P190,c(Q515))
['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3067120', 'P190', {'concept': 'Q56061'}] ['Q3067120', 'P190', {'concept': 'Q515'}]
['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Guanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Guanta', 'sister city', {'concept': 'city'}]
[]
SYSTEM
1 administrative territories and 1 cities
Q1858 Q3604
(Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3940,P190,c(Q56061)) (Q3940,P190,c(Q515)) (Q3067120,P190,c(Q56061)) (Q3067120,P190,c(Q515))
[ANSWER]
['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3940', 'P190', {'concept': 'Q56061'}] ['Q3940', 'P190', {'concept': 'Q515'}] ['Q3067120', 'P190', {'concept': 'Q56061'}] ['Q3067120', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q7926504 property:P190 ?z } UNION { resource:Q7926504 property:P190 ?y } UNION { resource:Q3118752 property:P190 ?z } UNION { resource:Q3118752 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
Hanoi Djibouti
1 administrative territories and 1 cities
['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Victoria', 'sister city', {'concept': 'administrative territorial entity'}] ['Victoria', 'sister city', {'concept': 'city'}] ['Guanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Guanta', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Victoria property:sister_city ?z } UNION { resource:Victoria property:sister_city ?y } UNION { resource:Guanta property:sister_city ?z } UNION { resource:Guanta property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3940
P1376
Q15617994
USER
How many administrative territories have Victoria as their capital ?
(Q3940,P1376,c(Q15617994))
action count
action filter_type
action find
entity Q3940
relation P1376
type Q15617994
['Q3940', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q3940 property:P1376 ?b . ?b rdf:type ontology:Q15617994 }
Victoria
action count
action filter_type
action find
entity Victoria
relation capital of
type designation for an administrative territorial entity
['Victoria', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Victoria property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q1042
(Q3940,P1376,c(Q15617994))
action count
action filter_type
action find
entity Q3940
relation P1376
type Q15617994
[ANSWER]
['Q3940', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q3940 property:P1376 ?b . ?b rdf:type ontology:Q15617994 }
Seychelles
1
action count
action filter_type
action find
entity Victoria
relation capital of
type designation for an administrative territorial entity
['Victoria', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Victoria property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3940
P551
Q502895
USER
Which person dwells at that administrative territory ?
action filter_type
action find_reverse
entity Q3940
relation P551
type Q502895
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q3940 . ?e rdf:type ontology:Q502895 }
Victoria
action filter_type
action find_reverse
entity Victoria
relation residence
type common name
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Victoria . ?e rdf:type ontology:common_name }
[]
common name
Q12048671
SYSTEM
Radovan Krejčíř
Q12048671
action filter_type
action find_reverse
entity Q3940
relation P551
type Q502895
[ANSWER] dwells at that administrative territory
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q3940 . ?e rdf:type ontology:Q502895 }
Radovan Krejčíř
Radovan Krejčíř dwells at that administrative territory
Radovan Krejčíř
action filter_type
action find_reverse
entity Victoria
relation residence
type common name
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Victoria . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
Which collectables did atleast 2 people do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 2
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?b ) WHERE { ?u property:P725 ?r . ?u rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?b >= 2 ) }
action atleast
action find_tuple_counts
relation voice actor
type collectable
type common name
value 2
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?b ) WHERE { ?u property:voice_actor ?r . ?u rdf:type ontology:collectable . ?r rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?b >= 2 ) }
[]
common name collectable
Q482870 Q483263 Q485958
SYSTEM
Boku wa Tomodachi ga Sukunai, Baka and Test, Ro-Kyu-Bu!
Q50035 Q483263 Q482870 Q1204015 Q485958 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 2
[ANSWERS] atleast 2 people did the dubbing for
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?b ) WHERE { ?u property:P725 ?r . ?u rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?b >= 2 ) }
Nyaruko: Crawling with Love Baka and Test Boku wa Tomodachi ga Sukunai Ōkami Kakushi Ro-Kyu-Bu! Accel World Handy Manny's Motorcycle Adventure
Boku wa Tomodachi ga Sukunai, Baka and Test and Ro-Kyu-Bu! atleast 2 people did the dubbing for
Boku wa Tomodachi ga Sukunai Baka and Test Ro-Kyu-Bu!
action atleast
action find_tuple_counts
relation voice actor
type collectable
type common name
value 2
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?b ) WHERE { ?u property:voice_actor ?r . ?u rdf:type ontology:collectable . ?r rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?b >= 2 ) }
[]