Simple Question (Direct)
Simple Question
Q988702
P1313
Q12737077
USER
What is the occupation held by Estellencs ?
(Q988702,P1313,c(Q12737077))
action filter_type
action find
entity Q988702
relation P1313
type Q12737077
['Q988702', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q988702 property:P1313 ?j . ?j rdf:type ontology:Q12737077 }
Estellencs
action filter_type
action find
entity Estellencs
relation office held by head of government
type occupation
['Estellencs', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Estellencs property:office_held_by_head_of_government ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q26702587
SYSTEM
mayor of Estellenchs
Q26702587
(Q988702,P1313,c(Q12737077))
action filter_type
action find
entity Q988702
relation P1313
type Q12737077
[ANSWER]
['Q988702', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q988702 property:P1313 ?j . ?j rdf:type ontology:Q12737077 }
mayor of Estellenchs
mayor of Estellenchs
action filter_type
action find
entity Estellencs
relation office held by head of government
type occupation
['Estellencs', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Estellencs property:office_held_by_head_of_government ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q988702
P706
Q271669
USER
Which landform is Estellencs located on ?
(Q988702,P706,c(Q271669))
action filter_type
action find
entity Q988702
relation P706
type Q271669
['Q988702', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ?t WHERE { resource:Q988702 property:P706 ?t . ?t rdf:type ontology:Q271669 }
Estellencs
action filter_type
action find
entity Estellencs
relation located on terrain feature
type landform
['Estellencs', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ?t WHERE { resource:Estellencs property:located_on_terrain_feature ?t . ?t rdf:type ontology:landform }
[]
landform
Q8828
SYSTEM
Majorca
Q8828
(Q988702,P706,c(Q271669))
action filter_type
action find
entity Q988702
relation P706
type Q271669
[ANSWER]
['Q988702', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ?t WHERE { resource:Q988702 property:P706 ?t . ?t rdf:type ontology:Q271669 }
Majorca
Majorca
action filter_type
action find
entity Estellencs
relation located on terrain feature
type landform
['Estellencs', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ?t WHERE { resource:Estellencs property:located_on_terrain_feature ?t . ?t rdf:type ontology:landform }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8828
P37
Q34770
USER
What is the official language of that landform ?
(Q8828,P37,c(Q34770))
action filter_type
action find
entity Q8828
relation P37
type Q34770
['Q8828', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q8828 property:P37 ?r . ?r rdf:type ontology:Q34770 }
Majorca
action filter_type
action find
entity Majorca
relation official language
type language
['Majorca', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Majorca property:official_language ?r . ?r rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q8828,P37,c(Q34770))
action filter_type
action find
entity Q8828
relation P37
type Q34770
[ANSWER]
['Q8828', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q8828 property:P37 ?r . ?r rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Majorca
relation official language
type language
['Majorca', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Majorca property:official_language ?r . ?r rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q1752346 Q1307214 Q12737077
USER
How many occupations were appointed by exactly 1 assemblies or forms of government ?
(c(Q12737077),P748,c(Q1752346)|c(Q1307214))
action count
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?b ) WHERE { { ?a property:P748 ?r . ?a rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q1752346 } UNION { ?a rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q1307214 . ?a property:P748 ?r } } GROUP BY ?a } }
action count
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?b ) WHERE { { ?a property:appointed_by ?r . ?a rdf:type ontology:occupation . ?r rdf:type ontology:assembly } UNION { ?a rdf:type ontology:occupation . ?r rdf:type ontology:form_of_government . ?a property:appointed_by ?r } } GROUP BY ?a } }
[]
assembly form of government occupation
SYSTEM
23
Q1355456 Q1507619 Q910308 Q1753754 Q943379 Q15305714 Q842386 Q19056310 Q890030 Q796593 Q583809 Q7574264 Q2962001 Q3409203 Q213107 Q327948 Q1370482 Q162754 Q217217 Q1281611 Q628102 Q1752225 Q687908
(c(Q12737077),P748,c(Q1752346)|c(Q1307214))
action count
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?b ) WHERE { { ?a property:P748 ?r . ?a rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q1752346 } UNION { ?a rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q1307214 . ?a property:P748 ?r } } GROUP BY ?a } }
Lord Chamberlain Deputy Prime Minister of the United Kingdom Lord Privy Seal Master of the Rolls Lord President of the Council Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of Malta Solicitor General for England and Wales Speaker of the Hellenic Parliament Chief of the Defence Staff President of Greece Prime Minister of Belgium President of Israel President of Cuba Chancellor of the Duchy of Lancaster Lord Chancellor Lieutenant Governor of Jersey President of Nauru Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
23
action count
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?b ) WHERE { { ?a property:appointed_by ?r . ?a rdf:type ontology:occupation . ?r rdf:type ontology:assembly } UNION { ?a rdf:type ontology:occupation . ?r rdf:type ontology:form_of_government . ?a property:appointed_by ?r } } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q988702
P47
Q1048835
USER
Which political territories have a shared border with Estellencs ?
(Q988702,P47,c(Q1048835))
action filter_type
action find
entity Q988702
relation P47
type Q1048835
['Q988702', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q988702 property:P47 ?u . ?u rdf:type ontology:Q1048835 }
Estellencs
action filter_type
action find
entity Estellencs
relation shares border with
type political territorial entity
['Estellencs', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Estellencs property:shares_border_with ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q491786 Q983625 Q616408
SYSTEM
Calvià, Puigpunyent, Banyalbufar
Q491786 Q493017 Q983625 Q616408
(Q988702,P47,c(Q1048835))
action filter_type
action find
entity Q988702
relation P47
type Q1048835
[ANSWERS]
['Q988702', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q988702 property:P47 ?u . ?u rdf:type ontology:Q1048835 }
Calvià Andratx Puigpunyent Banyalbufar
Calvià Puigpunyent Banyalbufar
action filter_type
action find
entity Estellencs
relation shares border with
type political territorial entity
['Estellencs', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Estellencs property:shares_border_with ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q616408
P6
Q502895
USER
Which person is the head of government of that political territory ?
(Q616408,P6,c(Q502895))
action filter_type
action find
entity Q616408
relation P6
type Q502895
['Q616408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q616408 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Banyalbufar
action filter_type
action find
entity Banyalbufar
relation head of government
type common name
['Banyalbufar', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Banyalbufar property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q983625
SYSTEM
Did you mean Puigpunyent ?
Q491786 Q983625 Q616408
(Q491786,P6,c(Q502895)) (Q983625,P6,c(Q502895)) (Q616408,P6,c(Q502895))
[ANSWER]
['Q491786', 'P6', {'concept': 'Q502895'}] ['Q983625', 'P6', {'concept': 'Q502895'}] ['Q616408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q616408 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Calvià Puigpunyent Banyalbufar
Did you mean Puigpunyent ?
Puigpunyent
['Calvià', 'head of government', {'concept': 'common name'}] ['Puigpunyent', 'head of government', {'concept': 'common name'}] ['Banyalbufar', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Banyalbufar property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Banyalbufar. Could you tell me the answer for that?
(Q616408,P6,c(Q502895))
Q616408
['Q616408', 'P6', {'concept': 'Q502895'}]
['Banyalbufar', 'head of government', {'concept': 'common name'}]
[]
Q14035185
SYSTEM
Mateo Ferra Bestard
Q14035185
(Q616408,P6,c(Q502895))
action filter_type
action find
entity Q616408
relation P6
type Q502895
[ANSWER]
['Q616408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q616408 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Mateo Ferra Bestard
Mateo Ferra Bestard
action filter_type
action find
entity Banyalbufar
relation head of government
type common name
['Banyalbufar', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Banyalbufar property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q14035185 Q616408
P6
Q1048835
USER
Is that person the head of the goverment of Banyalbufar ?
(Q616408,P6,Q14035185)
action is_in
entity Q14035185
action find
entity Q616408
relation P6
['Q616408', 'P6', 'Q14035185']
ASK WHERE { resource:Q616408 property:P6 resource:Q14035185 }
Mateo Ferra Bestard Banyalbufar
action is_in
entity Mateo Ferra Bestard
action find
entity Banyalbufar
relation head of government
['Banyalbufar', 'head of government', 'Mateo Ferra Bestard']
ASK WHERE { resource:Banyalbufar property:head_of_government resource:Mateo_Ferra_Bestard }
[]
political territorial entity
SYSTEM
YES
(Q616408,P6,Q14035185)
action is_in
entity Q14035185
action find
entity Q616408
relation P6
[ANSWER]
['Q616408', 'P6', 'Q14035185']
ASK WHERE { resource:Q616408 property:P6 resource:Q14035185 }
Yes
action is_in
entity Mateo Ferra Bestard
action find
entity Banyalbufar
relation head of government
['Banyalbufar', 'head of government', 'Mateo Ferra Bestard']
ASK WHERE { resource:Banyalbufar property:head_of_government resource:Mateo_Ferra_Bestard }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q14035185 Q715312
P21
Q290
USER
How many sexes do Mateo Ferra Bestard or Nymphadora Tonks belong to ?
(Q14035185,P21,c(Q290)) (Q715312,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q14035185
relation P21
type Q290
action filter_type
action find
entity Q715312
relation P21
type Q290
['Q14035185', 'P21', {'concept': 'Q290'}] ['Q715312', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?i ) { ( resource:Q14035185 ) ( resource:Q715312 ) } . ?i property:P21 ?u }
Mateo Ferra Bestard Nymphadora Tonks
action count
action union
action filter_type
action find
entity Mateo Ferra Bestard
relation gender
type sex
action filter_type
action find
entity Nymphadora Tonks
relation gender
type sex
['Mateo Ferra Bestard', 'gender', {'concept': 'sex'}] ['Nymphadora Tonks', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?i ) { ( resource:Mateo_Ferra_Bestard ) ( resource:Nymphadora_Tonks ) } . ?i property:gender ?u }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q14035185,P21,c(Q290)) (Q715312,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q14035185
relation P21
type Q290
action filter_type
action find
entity Q715312
relation P21
type Q290
[ANSWER]
['Q14035185', 'P21', {'concept': 'Q290'}] ['Q715312', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?i ) { ( resource:Q14035185 ) ( resource:Q715312 ) } . ?i property:P21 ?u }
male female
2
action count
action union
action filter_type
action find
entity Mateo Ferra Bestard
relation gender
type sex
action filter_type
action find
entity Nymphadora Tonks
relation gender
type sex
['Mateo Ferra Bestard', 'gender', {'concept': 'sex'}] ['Nymphadora Tonks', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?i ) { ( resource:Mateo_Ferra_Bestard ) ( resource:Nymphadora_Tonks ) } . ?i property:gender ?u }
[]