Simple Question (Direct)
Simple Question
Q605397
P1313
Q12737077
USER
What is the occupation held by El Padul ?
(Q605397,P1313,c(Q12737077))
action filter_type
action find
entity Q605397
relation P1313
type Q12737077
['Q605397', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q605397 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
El Padul
action filter_type
action find
entity El Padul
relation office held by head of government
type occupation
['El Padul', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:El_Padul property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q26699017
SYSTEM
mayor of El Padul
Q26699017
(Q605397,P1313,c(Q12737077))
action filter_type
action find
entity Q605397
relation P1313
type Q12737077
The occupation held by El Padul is the [ANSWER]
['Q605397', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q605397 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
mayor of El Padul
The occupation held by El Padul is the mayor of El Padul
mayor of El Padul
action filter_type
action find
entity El Padul
relation office held by head of government
type occupation
['El Padul', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:El_Padul property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q605397
P6
Q502895
USER
Who is the head of the government of that political territory ?
(Q26699017,P6,c(Q502895))
action filter_type
action find
entity Q605397
relation P6
type Q502895
['Q26699017', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q605397 property:P6 ?a . ?a rdf:type ontology:Q502895 }
El Padul
action filter_type
action find
entity El Padul
relation head of government
type common name
['mayor of El Padul', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:El_Padul property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q14079252
SYSTEM
Manuel Alarcon Perez
Q14079252
(Q26699017,P6,c(Q502895))
action filter_type
action find
entity Q605397
relation P6
type Q502895
The head of the government of that political territory is General [ANSWER]
['Q26699017', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q605397 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Manuel Alarcon Perez
The head of the government of that political territory is General Manuel Alarcon Perez
Manuel Alarcon Perez
action filter_type
action find
entity El Padul
relation head of government
type common name
['mayor of El Padul', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:El_Padul property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q14079252 Q29 Q432527
P27
Q15617994
USER
Is that person a native of Spain and Ribera ?
(Q14079252,P27,Q29) (Q14079252,P27,Q432527)
action is_in
entity Q14079252
action intersection
action find_reverse
entity Q29
relation P27
action find_reverse
entity Q432527
relation P27
['Q14079252', 'P27', 'Q29'] ['Q14079252', 'P27', 'Q432527']
ASK WHERE { resource:Q14079252 property:P27 resource:Q432527 . resource:Q14079252 property:P27 resource:Q29 }
Manuel Alarcon Perez Spain Ribera
action is_in
entity Manuel Alarcon Perez
action intersection
action find_reverse
entity Spain
relation country of citizenship
action find_reverse
entity Ribera
relation country of citizenship
['Manuel Alarcon Perez', 'country of citizenship', 'Spain'] ['Manuel Alarcon Perez', 'country of citizenship', 'Ribera']
ASK WHERE { resource:Manuel_Alarcon_Perez property:country_of_citizenship resource:Ribera . resource:Manuel_Alarcon_Perez property:country_of_citizenship resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q14079252,P27,Q29) (Q14079252,P27,Q432527)
action is_in
entity Q14079252
action intersection
action find_reverse
entity Q29
relation P27
action find_reverse
entity Q432527
relation P27
[ANSWER]
['Q14079252', 'P27', 'Q29'] ['Q14079252', 'P27', 'Q432527']
ASK WHERE { resource:Q14079252 property:P27 resource:Q432527 . resource:Q14079252 property:P27 resource:Q29 }
YES and NO respectively
action is_in
entity Manuel Alarcon Perez
action intersection
action find_reverse
entity Spain
relation country of citizenship
action find_reverse
entity Ribera
relation country of citizenship
['Manuel Alarcon Perez', 'country of citizenship', 'Spain'] ['Manuel Alarcon Perez', 'country of citizenship', 'Ribera']
ASK WHERE { resource:Manuel_Alarcon_Perez property:country_of_citizenship resource:Ribera . resource:Manuel_Alarcon_Perez property:country_of_citizenship resource:Spain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do around 142 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 142
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?t ) WHERE { ?z rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 . ?b property:P1303 ?z } GROUP BY ?z } . FILTER ( ?t = 142 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 142
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?t ) WHERE { ?z rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name . ?b property:instrument ?z } GROUP BY ?z } . FILTER ( ?t = 142 ) }
[]
musical instrument common name
SYSTEM
61
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 142
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?t ) WHERE { ?z rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 . ?b property:P1303 ?z } GROUP BY ?z } . FILTER ( ?t = 142 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
61
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 142
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?t ) WHERE { ?z rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name . ?b property:instrument ?z } GROUP BY ?z } . FILTER ( ?t = 142 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14079252
P106
Q12737077
USER
Which occupation has Manuel Alarcon Perez as his/her 's career ?
(Q14079252,P106,c(Q12737077))
action filter_type
action find
entity Q14079252
relation P106
type Q12737077
['Q14079252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q14079252 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Manuel Alarcon Perez
action filter_type
action find
entity Manuel Alarcon Perez
relation occupation
type occupation
['Manuel Alarcon Perez', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Manuel_Alarcon_Perez property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q14079252,P106,c(Q12737077))
action filter_type
action find
entity Q14079252
relation P106
type Q12737077
The [ANSWER] has Manuel Alarcon Perez as his/her 's career
['Q14079252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q14079252 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
politician
The politician has Manuel Alarcon Perez as his/her 's career
politician
action filter_type
action find
entity Manuel Alarcon Perez
relation occupation
type occupation
['Manuel Alarcon Perez', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Manuel_Alarcon_Perez property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14079252
P21
Q290
USER
Which sex does that person possess ?
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q14079252
relation P21
type Q290
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q14079252 property:P21 ?j }
Manuel Alarcon Perez
action filter_type
action find
entity Manuel Alarcon Perez
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Manuel_Alarcon_Perez property:gender ?j }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q14079252
relation P21
type Q290
That person possesses a [ANSWER]
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q14079252 property:P21 ?j }
male
That person possesses a male
male
action filter_type
action find
entity Manuel Alarcon Perez
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Manuel_Alarcon_Perez property:gender ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q14514600 Q14934048
USER
How many groups of fictional characters and political ideologies are a that sex ?
(c(Q14514600),P21,Q6581097) (c(Q14934048),P21,Q6581097) (c(Q14514600),P21,Q6581097) (c(Q14934048),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14514600
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14934048
[{'concept': 'Q14514600'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097'] [{'concept': 'Q14514600'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q14514600 } UNION { ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q14934048 } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type group of fictional characters
action filter_type
action find_reverse
entity male
relation gender
type political ideology
[{'concept': 'group of fictional characters'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male'] [{'concept': 'group of fictional characters'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:gender resource:male . ?i rdf:type ontology:group_of_fictional_characters } UNION { ?i property:gender resource:male . ?i rdf:type ontology:political_ideology } }
[]
group of fictional characters political ideology
SYSTEM
18 groups of fictional characters and 1 political ideologies
Q605849 Q2522513 Q1797799 Q6128436 Q11965 Q3238692 Q868779 Q719492 Q3848792 Q11078410 Q279876 Q1756503 Q177499 Q3016171 Q559524 Q216489 Q7467451 Q3142245 Q832673
(c(Q14514600),P21,Q6581097) (c(Q14934048),P21,Q6581097) (c(Q14514600),P21,Q6581097) (c(Q14934048),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14514600
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q14934048
[ANSWER]
[{'concept': 'Q14514600'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097'] [{'concept': 'Q14514600'}, 'P21', 'Q6581097'] [{'concept': 'Q14934048'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q14514600 } UNION { ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q14934048 } }
Juan Sánchez Villa-Lobos Ramírez Duncan MacLeod Pallando Silvanus Kettleburn Huey, Dewey, and Louie Khamûl Connor MacLeod Radagast Olaf Kullmann Morinehtar Kurgan Thomson and Thompson Gandalf Darius Witch-king of Angmar Saruman Alatar Hugh Fitzcairn Richie Ryan
18 groups of fictional characters and 1 political ideologies
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type group of fictional characters
action filter_type
action find_reverse
entity male
relation gender
type political ideology
[{'concept': 'group of fictional characters'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male'] [{'concept': 'group of fictional characters'}, 'gender', 'male'] [{'concept': 'political ideology'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { ?i property:gender resource:male . ?i rdf:type ontology:group_of_fictional_characters } UNION { ?i property:gender resource:male . ?i rdf:type ontology:political_ideology } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26699017
P1001
Q1048835
USER
Which political territory applies to jurisdiction of mayor of El Padul ?
(Q26699017,P1001,c(Q1048835))
action filter_type
action find
entity Q26699017
relation P1001
type Q1048835
['Q26699017', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q26699017 property:P1001 ?k }
mayor of El Padul
action filter_type
action find
entity mayor of El Padul
relation applies to jurisdiction
type political territorial entity
['mayor of El Padul', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:mayor_of_El_Padul property:applies_to_jurisdiction ?k }
[]
political territorial entity
Q605397
SYSTEM
El Padul
Q605397
(Q26699017,P1001,c(Q1048835))
action filter_type
action find
entity Q26699017
relation P1001
type Q1048835
[ANSWER] applies to jurisdiction of mayor of [ANSWER]
['Q26699017', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q26699017 property:P1001 ?k }
El Padul
El Padul applies to jurisdiction of mayor of El Padul
El Padul
action filter_type
action find
entity mayor of El Padul
relation applies to jurisdiction
type political territorial entity
['mayor of El Padul', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:mayor_of_El_Padul property:applies_to_jurisdiction ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26698062
Q1048835
USER
And also tell me about mayor of Liérganes?
(Q26698062,P1001,c(Q1048835))
action filter_type
action find
entity Q26698062
relation P1001
type Q1048835
['Q26698062', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q26698062 property:P1001 ?t . ?t rdf:type ontology:Q1048835 }
mayor of Liérganes
action filter_type
action find
entity mayor of Liérganes
relation applies to jurisdiction
type political territorial entity
['mayor of Liérganes', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:mayor_of_Liérganes property:applies_to_jurisdiction ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q377115
SYSTEM
Liérganes
Q377115
(Q26698062,P1001,c(Q1048835))
action filter_type
action find
entity Q26698062
relation P1001
type Q1048835
[ANSWER]
['Q26698062', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q26698062 property:P1001 ?t . ?t rdf:type ontology:Q1048835 }
Liérganes
Liérganes
action filter_type
action find
entity mayor of Liérganes
relation applies to jurisdiction
type political territorial entity
['mayor of Liérganes', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:mayor_of_Liérganes property:applies_to_jurisdiction ?t . ?t rdf:type ontology:political_territorial_entity }
[]