Simple Question (Direct)
Simple Question
Q11927601
P1412
Q34770
USER
Which language is Joan Balart i Armengol capable of writing ?
(Q11927601,P1412,c(Q34770))
action filter_type
action find
entity Q11927601
relation P1412
type Q34770
['Q11927601', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q11927601 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Joan Balart i Armengol
action filter_type
action find
entity Joan Balart i Armengol
relation languages spoken, written or signed
type language
['Joan Balart i Armengol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Joan_Balart_i_Armengol property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11927601,P1412,c(Q34770))
action filter_type
action find
entity Q11927601
relation P1412
type Q34770
[ANSWER] is Joan Balart i Armengol capable of writing
['Q11927601', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q11927601 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Spanish
Spanish is Joan Balart i Armengol capable of writing
Spanish
action filter_type
action find
entity Joan Balart i Armengol
relation languages spoken, written or signed
type language
['Joan Balart i Armengol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Joan_Balart_i_Armengol property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11927601
P106
Q12737077
USER
What are the professions of Joan Balart i Armengol ?
(Q11927601,P106,c(Q12737077))
action filter_type
action find
entity Q11927601
relation P106
type Q12737077
['Q11927601', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q11927601 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Joan Balart i Armengol
action filter_type
action find
entity Joan Balart i Armengol
relation occupation
type occupation
['Joan Balart i Armengol', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Joan_Balart_i_Armengol property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q205375 Q82955
SYSTEM
inventor, politician
Q205375 Q82955
(Q11927601,P106,c(Q12737077))
action filter_type
action find
entity Q11927601
relation P106
type Q12737077
The professions of Joan Balart i Armengol are the [ANSWERS]
['Q11927601', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q11927601 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
inventor politician
The professions of Joan Balart i Armengol are the inventor and politician
inventor politician
action filter_type
action find
entity Joan Balart i Armengol
relation occupation
type occupation
['Joan Balart i Armengol', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Joan_Balart_i_Armengol property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q205375 Q82955
P39
Q502895
USER
Which people held the position of those occupations ?
(c(Q502895),P39,Q205375) (c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q205375'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q205375 ) ( resource:Q82955 ) } . ?r rdf:type ontology:Q502895 . ?r property:P39 ?h }
inventor politician
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'inventor'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:inventor ) ( resource:politician ) } . ?r rdf:type ontology:common_name . ?r property:position_held ?h }
[]
common name
Q559268 Q26215129
SYSTEM
Jean-Félix Bapterosses, Morteza Azari
Q559268 Q26215129
(c(Q502895),P39,Q205375) (c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] held the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q205375'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:Q205375 ) ( resource:Q82955 ) } . ?r rdf:type ontology:Q502895 . ?r property:P39 ?h }
Jean-Félix Bapterosses Morteza Azari
Jean-Félix Bapterosses and Morteza Azari held the position of those occupations
Jean-Félix Bapterosses Morteza Azari
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'inventor'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?r WHERE { VALUES ( ?h ) { ( resource:inventor ) ( resource:politician ) } . ?r rdf:type ontology:common_name . ?r property:position_held ?h }
[]
Clarification
Simple Question|Single Entity|Indirect
Q559268
P21
Q290
USER
Which sex does that person possess ?
(Q559268,P21,c(Q290))
action filter_type
action find
entity Q559268
relation P21
type Q290
['Q559268', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q559268 property:P21 ?n . ?n rdf:type ontology:Q290 }
Jean-Félix Bapterosses
action filter_type
action find
entity Jean-Félix Bapterosses
relation gender
type sex
['Jean-Félix Bapterosses', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Jean-Félix_Bapterosses property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q26215129
SYSTEM
Did you mean Morteza Azari ?
Q559268 Q26215129
(Q559268,P21,c(Q290)) (Q26215129,P21,c(Q290))
[ANSWER]
['Q559268', 'P21', {'concept': 'Q290'}] ['Q26215129', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q559268 property:P21 ?n . ?n rdf:type ontology:Q290 }
Jean-Félix Bapterosses Morteza Azari
Did you mean Morteza Azari ?
Morteza Azari
['Jean-Félix Bapterosses', 'gender', {'concept': 'sex'}] ['Morteza Azari', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Jean-Félix_Bapterosses property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Jean-Félix Bapterosses. Could you tell me the answer for that?
(Q559268,P21,c(Q290))
Q559268
['Q559268', 'P21', {'concept': 'Q290'}]
['Jean-Félix Bapterosses', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q559268,P21,c(Q290))
action filter_type
action find
entity Q559268
relation P21
type Q290
That person possesses a [ANSWER]
['Q559268', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q559268 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Jean-Félix Bapterosses
relation gender
type sex
['Jean-Félix Bapterosses', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Jean-Félix_Bapterosses property:gender ?n . ?n rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q20893944
P21
Q502895
USER
Does Omid Sing have the gender as that sex ?
(Q20893944,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20893944
relation P21
['Q20893944', 'P21', 'Q6581097']
ASK WHERE { resource:Q20893944 property:P21 resource:Q6581097 }
male Omid Sing
action is_in
entity male
action find
entity Omid Sing
relation gender
['Omid Sing', 'gender', 'male']
ASK WHERE { resource:Omid_Sing property:gender resource:male }
[]
common name
SYSTEM
YES
(Q20893944,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20893944
relation P21
[ANSWER]
['Q20893944', 'P21', 'Q6581097']
ASK WHERE { resource:Q20893944 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Omid Sing
relation gender
['Omid Sing', 'gender', 'male']
ASK WHERE { resource:Omid_Sing property:gender resource:male }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q340169
USER
Which media depicts that sex ?
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
SELECT DISTINCT ?r WHERE { ?r property:P180 resource:Q6581097 . ?r rdf:type ontology:Q340169 }
male
action filter_type
action find_reverse
entity male
relation depicts
type media
SELECT DISTINCT ?r WHERE { ?r property:depicts resource:male . ?r rdf:type ontology:media }
[]
media
Q20020115
SYSTEM
Portrait of a Young Man
Q20020115
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[ANSWER] depicts that sex
SELECT DISTINCT ?r WHERE { ?r property:P180 resource:Q6581097 . ?r rdf:type ontology:Q340169 }
Portrait of a Young Man
Portrait of a Young Man depicts that sex
Portrait of a Young Man
action filter_type
action find_reverse
entity male
relation depicts
type media
SELECT DISTINCT ?r WHERE { ?r property:depicts resource:male . ?r rdf:type ontology:media }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P138
Q7946
USER
Which minerals are named after that sex ?
(c(Q7946),P138,Q20020115)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[{'concept': 'Q7946'}, 'P138', 'Q20020115']
SELECT DISTINCT ?e WHERE { ?e property:P138 resource:Q6581097 . ?e rdf:type ontology:Q7946 }
male
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'Portrait of a Young Man']
SELECT DISTINCT ?e WHERE { ?e property:named_after resource:male . ?e rdf:type ontology:mineral }
[]
mineral
Q19861020 Q19861231 Q4006570
SYSTEM
mendeleevite-(Ce), reynoldsite, urusovite
Q19861020 Q18375263 Q19862060 Q19861231 Q4006570 Q3565842 Q19833301
(c(Q7946),P138,Q20020115)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[ANSWERS] are named after that sex
[{'concept': 'Q7946'}, 'P138', 'Q20020115']
SELECT DISTINCT ?e WHERE { ?e property:P138 resource:Q6581097 . ?e rdf:type ontology:Q7946 }
mendeleevite-(Ce) billwiseite witzkeite reynoldsite urusovite zirkelite carlosbarbosaite
Mendeleevite-(Ce), reynoldsite and urusovite are named after that sex
mendeleevite-(Ce) reynoldsite urusovite
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'Portrait of a Young Man']
SELECT DISTINCT ?e WHERE { ?e property:named_after resource:male . ?e rdf:type ontology:mineral }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P2695
Q515 Q7946
USER
How many minerals can be obtained naturally in lesser number of cities than that mineral ?
(c(Q7946),P2695,c(Q515))
[{'concept': 'Q7946'}, 'P2695', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q1973416 ?y . ?z rdf:type ontology:Q7946 . ?y rdf:type ontology:Q7930989 }
[{'concept': 'mineral'}, 'type locality', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:type_locality ?y . ?z rdf:type ontology:mineral . ?y rdf:type ontology:city }
[]
city mineral
Comparative|Count over More/Less|Single entity type|Clarification
Q4006570
SYSTEM
Did you mean urusovite ?
(c(Q7946),P2695,c(Q515))
[ANSWER]
[{'concept': 'Q7946'}, 'P2695', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q1973416 ?y . ?z rdf:type ontology:Q7946 . ?y rdf:type ontology:Q7930989 }
Did you mean urusovite ?
urusovite
[{'concept': 'mineral'}, 'type locality', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:type_locality ?y . ?z rdf:type ontology:mineral . ?y rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant mendeleevite-(Ce). Could you tell me the answer for that?
(c(Q7946),P2695,c(Q515))
Q19861020
[{'concept': 'Q7946'}, 'P2695', {'concept': 'Q515'}]
[{'concept': 'mineral'}, 'type locality', {'concept': 'city'}]
[]
SYSTEM
0
(c(Q7946),P2695,c(Q515))
[ANSWER]
[{'concept': 'Q7946'}, 'P2695', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q1973416 ?y . ?z rdf:type ontology:Q7946 . ?y rdf:type ontology:Q7930989 }
0
[{'concept': 'mineral'}, 'type locality', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:type_locality ?y . ?z rdf:type ontology:mineral . ?y rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5241520 Q11927601
P19 P551
Q56061
USER
Which administrative territories did Joan Balart i Armengol reside or were David Švagrovský born at ?
OR((Q11927601,P551,c(Q56061)), (Q5241520,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11927601
relation P551
action find
entity Q5241520
relation P19
type Q56061
{'OR': [['Q11927601', 'P551', {'concept': 'Q56061'}], ['Q5241520', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q11927601 property:P551 ?s } UNION { resource:Q5241520 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
David Švagrovský Joan Balart i Armengol
action filter_type
action union
action find
entity Joan Balart i Armengol
relation residence
action find
entity David Švagrovský
relation place of birth
type administrative territorial entity
{'OR': [['Joan Balart i Armengol', 'residence', {'concept': 'administrative territorial entity'}], ['David Švagrovský', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Joan_Balart_i_Armengol property:residence ?s } UNION { resource:David_Švagrovský property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12258 Q1085
SYSTEM
Sabadell, Prague
Q12258 Q1085
OR((Q11927601,P551,c(Q56061)), (Q5241520,P19,c(Q56061)))
action filter_type
action union
action find
entity Q11927601
relation P551
action find
entity Q5241520
relation P19
type Q56061
Joan Balart i Armengol resided in [ANSWERS]
{'OR': [['Q11927601', 'P551', {'concept': 'Q56061'}], ['Q5241520', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q11927601 property:P551 ?s } UNION { resource:Q5241520 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
Sabadell Prague
Joan Balart i Armengol resided in Sabadell and Prague
Sabadell Prague
action filter_type
action union
action find
entity Joan Balart i Armengol
relation residence
action find
entity David Švagrovský
relation place of birth
type administrative territorial entity
{'OR': [['Joan Balart i Armengol', 'residence', {'concept': 'administrative territorial entity'}], ['David Švagrovský', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Joan_Balart_i_Armengol property:residence ?s } UNION { resource:David_Švagrovský property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12258
P47
Q1048835
USER
Which political territories have an adjacent border with that administrative territory ?
(c(Q1048835),P47,Q12258)
action filter_type
action find
entity Q12258
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q12258']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . resource:Q12258 property:P47 ?d }
Sabadell
action filter_type
action find
entity Sabadell
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sabadell']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . resource:Sabadell property:shares_border_with ?d }
[]
political territorial entity
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q12258 Q1085
(c(Q1048835),P47,Q12258) (c(Q1048835),P47,Q1085)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q12258'] [{'concept': 'Q1048835'}, 'P47', 'Q1085']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . resource:Q12258 property:P47 ?d }
Sabadell Prague
Did you mean Prague ?
Prague
[{'concept': 'political territorial entity'}, 'shares border with', 'Sabadell'] [{'concept': 'political territorial entity'}, 'shares border with', 'Prague']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . resource:Sabadell property:shares_border_with ?d }
[]
Simple Question (Coreferenced)
USER
No, I meant Sabadell. Could you tell me the answer for that?
(c(Q1048835),P47,Q12258)
Q12258
[{'concept': 'Q1048835'}, 'P47', 'Q12258']
[{'concept': 'political territorial entity'}, 'shares border with', 'Sabadell']
[]
Q13916 Q13922 Q13941
SYSTEM
Barberà del Vallès, Cerdanyola del Vallès, Santa Perpètua de Mogoda
Q13941 Q13943 Q13935 Q13925 Q13922 Q13918 Q13916 Q13913
(c(Q1048835),P47,Q12258)
action filter_type
action find
entity Q12258
relation P47
type Q1048835
[ANSWERS] have an adjacent border with that administrative territory
[{'concept': 'Q1048835'}, 'P47', 'Q12258']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . resource:Q12258 property:P47 ?d }
Santa Perpètua de Mogoda Sentmenat Sant Quirze del Vallès Polinyà Cerdanyola del Vallès Castellar del Vallès Barberà del Vallès Badia del Vallès
Barberà del Vallès, Cerdanyola del Vallès and Santa Perpètua de Mogoda have an adjacent border with that administrative territory
Barberà del Vallès Cerdanyola del Vallès Santa Perpètua de Mogoda
action filter_type
action find
entity Sabadell
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sabadell']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . resource:Sabadell property:shares_border_with ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1085
P6
Q502895
USER
How many people have Prague as their heads of government ?
(Q1085,P6,c(Q502895))
action count
action filter_type
action find
entity Q1085
relation P6
type Q502895
['Q1085', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:Q502895 . resource:Q1085 property:P6 ?e }
Prague
action count
action filter_type
action find
entity Prague
relation head of government
type common name
['Prague', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:common_name . resource:Prague property:head_of_government ?e }
[]
common name
SYSTEM
30
Q7940786 Q10547432 Q12037238 Q12021474 Q11023716 Q11985895 Q12022993 Q12017714 Q18104657 Q10857536 Q10857763 Q12048031 Q12026110 Q12024879 Q15621392 Q3490563 Q4682983 Q11878707 Q10710292 Q12003229 Q11171177 Q890970 Q343248 Q630367 Q509047 Q12028220 Q12043184 Q712430 Q12023878 Q10781275
(Q1085,P6,c(Q502895))
action count
action filter_type
action find
entity Q1085
relation P6
type Q502895
[ANSWER]
['Q1085', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:Q502895 . resource:Q1085 property:P6 ?e }
Tomáš Černý Tomáš Hudeček Milan Kondr Igor Němec Ludvík Černý Václav Vacek Jan Podlipný František Štafa Adriana Krnáčová Zdeněk Horčík Zdeněk Zuska Přemysl Šámal Josef Huleš Jindřich Šolc Josef Hájek Petr Zenkl Vladimír Srb Emilián Skramlík Adolf Svoboda Ferdinand Vališ Čeněk Gregor Bohuslav Svoboda Karel Baxa Jan Kasl Jan Koukal Karel Groš Otakar Klapka Pavel Bém Jaroslav Kořán Alois Říha
30
action count
action filter_type
action find
entity Prague
relation head of government
type common name
['Prague', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:common_name . resource:Prague property:head_of_government ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1639397
P6
Q502895
USER
And what about Itsasondo?
(Q1639397,P6,c(Q502895))
action count
action filter_type
action find
entity Q1639397
relation P6
type Q502895
['Q1639397', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q1639397 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Itsasondo
action count
action filter_type
action find
entity Itsasondo
relation head of government
type common name
['Itsasondo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Itsasondo property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q14083848
(Q1639397,P6,c(Q502895))
action count
action filter_type
action find
entity Q1639397
relation P6
type Q502895
[ANSWER]
['Q1639397', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q1639397 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Asier Garro Sodupe
1
action count
action filter_type
action find
entity Itsasondo
relation head of government
type common name
['Itsasondo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Itsasondo property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]