Simple Question (Direct)
Simple Question
Q217598
P21
Q290
USER
Which sex does Jaume Bartumeu possess ?
(Q217598,P21,c(Q290))
action filter_type
action find
entity Q217598
relation P21
type Q290
['Q217598', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q217598 property:P21 ?e . ?e rdf:type ontology:Q290 }
Jaume Bartumeu
action filter_type
action find
entity Jaume Bartumeu
relation gender
type sex
['Jaume Bartumeu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Jaume_Bartumeu property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q217598,P21,c(Q290))
action filter_type
action find
entity Q217598
relation P21
type Q290
Jaume Bartumeu possesses le [ANSWER]
['Q217598', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q217598 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Jaume Bartumeu possesses le male
male
action filter_type
action find
entity Jaume Bartumeu
relation gender
type sex
['Jaume Bartumeu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Jaume_Bartumeu property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q217598
P27
Q15617994
USER
Which administrative territory is Jaume Bartumeu a civilian of ?
(Q217598,P27,c(Q15617994))
action filter_type
action find
entity Q217598
relation P27
type Q15617994
['Q217598', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q217598 property:P27 ?z }
Jaume Bartumeu
action filter_type
action find
entity Jaume Bartumeu
relation country of citizenship
type designation for an administrative territorial entity
['Jaume Bartumeu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaume_Bartumeu property:country_of_citizenship ?z }
[]
designation for an administrative territorial entity
Q228
SYSTEM
Andorra
Q228
(Q217598,P27,c(Q15617994))
action filter_type
action find
entity Q217598
relation P27
type Q15617994
[ANSWER] is Jaume Bartumeu a civilian of
['Q217598', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q217598 property:P27 ?z }
Andorra
Andorra is Jaume Bartumeu a civilian of
Andorra
action filter_type
action find
entity Jaume Bartumeu
relation country of citizenship
type designation for an administrative territorial entity
['Jaume Bartumeu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jaume_Bartumeu property:country_of_citizenship ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q217598
P463
Q484652
USER
Which international organization had Jaume Bartumeu as its member ?
(Q217598,P463,c(Q484652))
action filter_type
action find
entity Q217598
relation P463
type Q484652
['Q217598', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q484652 . resource:Q217598 property:P463 ?n }
Jaume Bartumeu
action filter_type
action find
entity Jaume Bartumeu
relation member of
type international organization
['Jaume Bartumeu', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:international_organization . resource:Jaume_Bartumeu property:member_of ?n }
[]
international organization
Q939743
SYSTEM
Parliamentary Assembly of the Council of Europe
Q939743
(Q217598,P463,c(Q484652))
action filter_type
action find
entity Q217598
relation P463
type Q484652
The [ANSWER] had Jaume Bartumeu as its member
['Q217598', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q484652 . resource:Q217598 property:P463 ?n }
Parliamentary Assembly of the Council of Europe
The Parliamentary Assembly of the Council of Europe had Jaume Bartumeu as its member
Parliamentary Assembly of the Council of Europe
action filter_type
action find
entity Jaume Bartumeu
relation member of
type international organization
['Jaume Bartumeu', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:international_organization . resource:Jaume_Bartumeu property:member_of ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q217598
P39
Q12737077
USER
Which occupation was a position held by Jaume Bartumeu ?
(Q217598,P39,c(Q12737077))
action filter_type
action find
entity Q217598
relation P39
type Q12737077
['Q217598', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q217598 property:P39 ?j }
Jaume Bartumeu
action filter_type
action find
entity Jaume Bartumeu
relation position held
type occupation
['Jaume Bartumeu', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Jaume_Bartumeu property:position_held ?j }
[]
occupation
Q20177831
SYSTEM
Member of the General Council  of Andorra
Q20177831
(Q217598,P39,c(Q12737077))
action filter_type
action find
entity Q217598
relation P39
type Q12737077
Member of the General Council of Andorra was a position held by Jaume Bartumeu
['Q217598', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q217598 property:P39 ?j }
Member of the General Council  of Andorra
Member of the General Council of Andorra was a position held by Jaume Bartumeu
Member of the General Council  of Andorra
action filter_type
action find
entity Jaume Bartumeu
relation position held
type occupation
['Jaume Bartumeu', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Jaume_Bartumeu property:position_held ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11365454 Q217598
P102
Q7210356
USER
Which political organizations do Jaume Bartumeu or Kishirō Nakamura belong to ?
OR((Q217598,P102,c(Q7210356)), (Q11365454,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q217598
relation P102
action find
entity Q11365454
relation P102
type Q7210356
{'OR': [['Q217598', 'P102', {'concept': 'Q7210356'}], ['Q11365454', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?p ) { ( resource:Q217598 ) ( resource:Q11365454 ) } . ?p property:P102 ?k } . ?k rdf:type ontology:Q7210356 }
Kishirō Nakamura Jaume Bartumeu
action filter_type
action union
action find
entity Jaume Bartumeu
relation member of political party
action find
entity Kishirō Nakamura
relation member of political party
type political organization
{'OR': [['Jaume Bartumeu', 'member of political party', {'concept': 'political organization'}], ['Kishirō Nakamura', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?p ) { ( resource:Jaume_Bartumeu ) ( resource:Kishirō_Nakamura ) } . ?p property:member_of_political_party ?k } . ?k rdf:type ontology:political_organization }
[]
political organization
Q232595 Q24866
SYSTEM
Liberal Democratic Party, Social Democratic Party
Q232595 Q24866
OR((Q217598,P102,c(Q7210356)), (Q11365454,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q217598
relation P102
action find
entity Q11365454
relation P102
type Q7210356
Jaume Bartumeu or Kishirō Nakamura belong to the [ANSWERS]
{'OR': [['Q217598', 'P102', {'concept': 'Q7210356'}], ['Q11365454', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?p ) { ( resource:Q217598 ) ( resource:Q11365454 ) } . ?p property:P102 ?k } . ?k rdf:type ontology:Q7210356 }
Liberal Democratic Party Social Democratic Party
Jaume Bartumeu or Kishirō Nakamura belong to the Liberal Democratic Party and Social Democratic Party
Liberal Democratic Party Social Democratic Party
action filter_type
action union
action find
entity Jaume Bartumeu
relation member of political party
action find
entity Kishirō Nakamura
relation member of political party
type political organization
{'OR': [['Jaume Bartumeu', 'member of political party', {'concept': 'political organization'}], ['Kishirō Nakamura', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?p ) { ( resource:Jaume_Bartumeu ) ( resource:Kishirō_Nakamura ) } . ?p property:member_of_political_party ?k } . ?k rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q159334 Q56061
USER
How many administrative territories are exactly 30 secondary schools and administrative territories situated in ?
(c(Q159334)|c(Q56061),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q56061
value 30
[[{'concept': 'Q159334'}, {'concept': 'Q56061'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:P17 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P17 ?u . ?d rdf:type ontology:Q159334 . ?u rdf:type ontology:Q15617994 } } GROUP BY ?u } . FILTER ( ?l = 30 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity
value 30
[[{'concept': 'secondary school'}, {'concept': 'administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:country ?u . ?d rdf:type ontology:secondary_school . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?l = 30 ) }
[]
designation for an administrative territorial entity secondary school administrative territorial entity
SYSTEM
2
Q983 Q678
(c(Q159334)|c(Q56061),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q56061
value 30
[ANSWER]
[[{'concept': 'Q159334'}, {'concept': 'Q56061'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:P17 ?u . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P17 ?u . ?d rdf:type ontology:Q159334 . ?u rdf:type ontology:Q15617994 } } GROUP BY ?u } . FILTER ( ?l = 30 ) }
Equatorial Guinea Tonga
2
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity
value 30
[[{'concept': 'secondary school'}, {'concept': 'administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:country ?u . ?d rdf:type ontology:secondary_school . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?l = 30 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1440112 Q11365454
P106
Q12737077
USER
Which occupations do Kishirō Nakamura and Holger Rogall do for a living ?
AND((Q11365454,P106,c(Q12737077)), (Q1440112,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q11365454
relation P106
action find
entity Q1440112
relation P106
type Q12737077
{'AND': [['Q11365454', 'P106', {'concept': 'Q12737077'}], ['Q1440112', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?n WHERE { resource:Q11365454 property:P106 ?n . resource:Q1440112 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Holger Rogall Kishirō Nakamura
action filter_type
action intersection
action find
entity Kishirō Nakamura
relation occupation
action find
entity Holger Rogall
relation occupation
type occupation
{'AND': [['Kishirō Nakamura', 'occupation', {'concept': 'occupation'}], ['Holger Rogall', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?n WHERE { resource:Kishirō_Nakamura property:occupation ?n . resource:Holger_Rogall property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q11365454,P106,c(Q12737077)), (Q1440112,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q11365454
relation P106
action find
entity Q1440112
relation P106
type Q12737077
Kishirō Nakamura and Holger Rogall do for a living a [ANSWER]
{'AND': [['Q11365454', 'P106', {'concept': 'Q12737077'}], ['Q1440112', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?n WHERE { resource:Q11365454 property:P106 ?n . resource:Q1440112 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
politician
Kishirō Nakamura and Holger Rogall do for a living a politician
politician
action filter_type
action intersection
action find
entity Kishirō Nakamura
relation occupation
action find
entity Holger Rogall
relation occupation
type occupation
{'AND': [['Kishirō Nakamura', 'occupation', {'concept': 'occupation'}], ['Holger Rogall', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?n WHERE { resource:Kishirō_Nakamura property:occupation ?n . resource:Holger_Rogall property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P921
Q2342494
USER
Which collectable has that occupation as its principal topic ?
(c(Q2342494),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q82955 . ?u rdf:type ontology:Q2342494 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:politician . ?u rdf:type ontology:collectable }
[]
collectable
Q21601944
SYSTEM
Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
Q21601944
(c(Q2342494),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[ANSWER] has that occupation as its principal topic
[{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q82955 . ?u rdf:type ontology:Q2342494 }
Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales has that occupation as its principal topic
Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:politician . ?u rdf:type ontology:collectable }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q21601944 Q1860 Q7102906
P364
Q34770
USER
Was that collectable originally created in English and Orizaba Nahuatl language ?
(Q21601944,P364,Q1860) (Q21601944,P364,Q7102906)
action is_in
entity Q21601944
action intersection
action find_reverse
entity Q1860
relation P364
action find_reverse
entity Q7102906
relation P364
['Q21601944', 'P364', 'Q1860'] ['Q21601944', 'P364', 'Q7102906']
ASK WHERE { resource:Q21601944 property:P364 resource:Q7102906 . resource:Q21601944 property:P364 resource:Q1860 }
Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales English Orizaba Nahuatl
action is_in
entity Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
action intersection
action find_reverse
entity English
relation original language of work
action find_reverse
entity Orizaba Nahuatl
relation original language of work
['Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales', 'original language of work', 'English'] ['Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales', 'original language of work', 'Orizaba Nahuatl']
ASK WHERE { resource:Notitia_Parliamentaria,_Or,_An_History_of_the_Counties,_Cities,_and_Boroughs_in_England_and_Wales property:original_language_of_work resource:Orizaba_Nahuatl . resource:Notitia_Parliamentaria,_Or,_An_History_of_the_Counties,_Cities,_and_Boroughs_in_England_and_Wales property:original_language_of_work resource:English }
[]
language
SYSTEM
YES and NO respectively
(Q21601944,P364,Q1860) (Q21601944,P364,Q7102906)
action is_in
entity Q21601944
action intersection
action find_reverse
entity Q1860
relation P364
action find_reverse
entity Q7102906
relation P364
[ANSWER]
['Q21601944', 'P364', 'Q1860'] ['Q21601944', 'P364', 'Q7102906']
ASK WHERE { resource:Q21601944 property:P364 resource:Q7102906 . resource:Q21601944 property:P364 resource:Q1860 }
YES and NO respectively
action is_in
entity Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
action intersection
action find_reverse
entity English
relation original language of work
action find_reverse
entity Orizaba Nahuatl
relation original language of work
['Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales', 'original language of work', 'English'] ['Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales', 'original language of work', 'Orizaba Nahuatl']
ASK WHERE { resource:Notitia_Parliamentaria,_Or,_An_History_of_the_Counties,_Cities,_and_Boroughs_in_England_and_Wales property:original_language_of_work resource:Orizaba_Nahuatl . resource:Notitia_Parliamentaria,_Or,_An_History_of_the_Counties,_Cities,_and_Boroughs_in_England_and_Wales property:original_language_of_work resource:English }
[]