Simple Question (Direct)
Simple Question
Q302476
P20
Q56061
USER
Where did the demise of Frank Pfütze occur ?
(Q302476,P20,c(Q56061))
action filter_type
action find
entity Q302476
relation P20
type Q56061
['Q302476', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q302476 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Frank Pfütze
action filter_type
action find
entity Frank Pfütze
relation place of death
type administrative territorial entity
['Frank Pfütze', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Frank_Pfütze property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q302476,P20,c(Q56061))
action filter_type
action find
entity Q302476
relation P20
type Q56061
The demise of Frank Pfütze occurred in [ANSWER]
['Q302476', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q302476 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Berlin
The demise of Frank Pfütze occurred in Berlin
Berlin
action filter_type
action find
entity Frank Pfütze
relation place of death
type administrative territorial entity
['Frank Pfütze', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Frank_Pfütze property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q64,P1313,c(Q12737077))
action filter_type
action find
entity Q64
relation P1313
type Q12737077
['Q64', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q64 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Berlin
action filter_type
action find
entity Berlin
relation office held by head of government
type occupation
['Berlin', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Berlin property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q641159
SYSTEM
Governing Mayor of Berlin
Q641159
(Q64,P1313,c(Q12737077))
action filter_type
action find
entity Q64
relation P1313
type Q12737077
The governing Mayor of Berlin serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q64', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q64 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Governing Mayor of Berlin
The governing Mayor of Berlin serves as the political office that is fulfilled by the head of the government of that administrative territory
Governing Mayor of Berlin
action filter_type
action find
entity Berlin
relation office held by head of government
type occupation
['Berlin', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Berlin property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P47
Q1048835
USER
Who share the border with Berlin ?
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q64 property:P47 ?y . ?y rdf:type ontology:Q1048835 }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Berlin property:shares_border_with ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q6142 Q6146 Q6139
SYSTEM
Potsdam-Mittelmark, Teltow-Fläming, Havelland
Q6173 Q6139 Q6142 Q6115 Q6181 Q6146 Q6178 Q6119
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
[ANSWERS] share the border with Berlin
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q64 property:P47 ?y . ?y rdf:type ontology:Q1048835 }
Dahme-Spreewald Havelland Potsdam-Mittelmark Barnim Märkisch-Oderland Teltow-Fläming Oder-Spree Oberhavel
Potsdam-Mittelmark, Teltow-Fläming and Havelland share the border with Berlin
Potsdam-Mittelmark Teltow-Fläming Havelland
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Berlin property:shares_border_with ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q917173
Q1048835
USER
And also tell me about Jumilla?
(Q917173,P47,c(Q1048835))
action filter_type
action find
entity Q917173
relation P47
type Q1048835
['Q917173', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q917173 property:P47 ?c }
Jumilla
action filter_type
action find
entity Jumilla
relation shares border with
type political territorial entity
['Jumilla', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Jumilla property:shares_border_with ?c }
[]
political territorial entity
Q593904 Q599774 Q1014709
SYSTEM
Montealegre del Castillo, Fuente-Álamo, Cieza
Q593904 Q559221 Q1014709 Q1614888 Q599774 Q1020559 Q305593 Q931116 Q1751965 Q1635711
(Q917173,P47,c(Q1048835))
action filter_type
action find
entity Q917173
relation P47
type Q1048835
[ANSWERS]
['Q917173', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q917173 property:P47 ?c }
Montealegre del Castillo Albatana Cieza Ontur Fuente-Álamo Fortuna Abarán Yecla Pinoso Abanilla
Montealegre del Castillo Fuente-Álamo Cieza
action filter_type
action find
entity Jumilla
relation shares border with
type political territorial entity
['Jumilla', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Jumilla property:shares_border_with ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q917173
P6
Q502895
USER
Which person is the head of government of Jumilla ?
(Q917173,P6,c(Q502895))
action filter_type
action find
entity Q917173
relation P6
type Q502895
['Q917173', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q917173 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Jumilla
action filter_type
action find
entity Jumilla
relation head of government
type common name
['Jumilla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Jumilla property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
Q14089703
SYSTEM
Enrique Luis Angel Jimenez Sanchez
Q14089703
(Q917173,P6,c(Q502895))
action filter_type
action find
entity Q917173
relation P6
type Q502895
[ANSWER] is the head of government of Jumilla
['Q917173', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q917173 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Enrique Luis Angel Jimenez Sanchez
Enrique Luis Angel Jimenez Sanchez is the head of government of Jumilla
Enrique Luis Angel Jimenez Sanchez
action filter_type
action find
entity Jumilla
relation head of government
type common name
['Jumilla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Jumilla property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q917173
P19
Q502895
USER
Which people were born at that administrative territory ?
(c(Q502895),P19,Q14089703)
action filter_type
action find_reverse
entity Q917173
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q14089703']
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q917173 . ?u rdf:type ontology:Q502895 }
Jumilla
action filter_type
action find_reverse
entity Jumilla
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Enrique Luis Angel Jimenez Sanchez']
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Jumilla . ?u rdf:type ontology:common_name }
[]
common name
Q555581 Q11037011 Q1340657
SYSTEM
Juan Zambudio Velasco, José Alarcón Herrero, Roque Baños
Q555581 Q19061014 Q11037011 Q1340657 Q1488501 Q19997657 Q23020460 Q20004466 Q19912392
(c(Q502895),P19,Q14089703)
action filter_type
action find_reverse
entity Q917173
relation P19
type Q502895
[ANSWERS] were born at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q14089703']
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q917173 . ?u rdf:type ontology:Q502895 }
Juan Zambudio Velasco José Sebastián Carrión José Alarcón Herrero Roque Baños José Guardiola Agustín Jiménez y Arenas José Ruiz Cutillas José Vicente Mateo i Navarro Juan Manuel Molina Mateo
Juan Zambudio Velasco, José Alarcón Herrero and Roque Baños were born at that administrative territory
Juan Zambudio Velasco José Alarcón Herrero Roque Baños
action filter_type
action find_reverse
entity Jumilla
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Enrique Luis Angel Jimenez Sanchez']
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Jumilla . ?u rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q644440
P1303
Q34379 Q502895
USER
How many musical instruments are played by greater number of people than Lap steel guitar ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q644440
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?q rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q644440 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?o > ?l ) }
Lap steel guitar
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Lap steel guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?q rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Lap_steel_guitar property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?l ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q644440
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?q rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q644440 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?o > ?l ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Lap steel guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?o ) WHERE { ?q rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Lap_steel_guitar property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q862501
P1303
Q34379 Q502895
USER
And how about ondes Martenot?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q862501
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q862501 property:P1303 ?u } } . FILTER ( ?w > ?e ) }
ondes Martenot
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:musical_instrument . resource:ondes_Martenot property:instrument ?u } } . FILTER ( ?w > ?e ) }
[]
musical instrument common name
SYSTEM
22
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q862501
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q862501 property:P1303 ?u } } . FILTER ( ?w > ?e ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
22
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:musical_instrument . resource:ondes_Martenot property:instrument ?u } } . FILTER ( ?w > ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q593904 Q1013696
P19
Q502895
USER
How many people have birthplace at Montealegre del Castillo or Darlington ?
(c(Q502895),P19,Q593904) (c(Q502895),P19,Q1013696)
action count
action union
action filter_type
action find_reverse
entity Q593904
relation P19
type Q502895
action filter_type
action find_reverse
entity Q1013696
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q593904'] [{'concept': 'Q502895'}, 'P19', 'Q1013696']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u property:P19 resource:Q593904 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P19 resource:Q1013696 . ?u rdf:type ontology:Q502895 } }
Montealegre del Castillo Darlington
action count
action union
action filter_type
action find_reverse
entity Montealegre del Castillo
relation place of birth
type common name
action filter_type
action find_reverse
entity Darlington
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Montealegre del Castillo'] [{'concept': 'common name'}, 'place of birth', 'Darlington']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u property:place_of_birth resource:Montealegre_del_Castillo . ?u rdf:type ontology:common_name } UNION { ?u property:place_of_birth resource:Darlington . ?u rdf:type ontology:common_name } }
[]
common name
SYSTEM
6
Q1701145 Q7172520 Q6310315 Q5213487 Q6832767 Q1680426
(c(Q502895),P19,Q593904) (c(Q502895),P19,Q1013696)
action count
action union
action filter_type
action find_reverse
entity Q593904
relation P19
type Q502895
action filter_type
action find_reverse
entity Q1013696
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q593904'] [{'concept': 'Q502895'}, 'P19', 'Q1013696']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u property:P19 resource:Q593904 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P19 resource:Q1013696 . ?u rdf:type ontology:Q502895 } }
John Morrow Peter Anderson Julián Rubio Dan Fitzsimons Michael McPhail James G. Monahan
6
action count
action union
action filter_type
action find_reverse
entity Montealegre del Castillo
relation place of birth
type common name
action filter_type
action find_reverse
entity Darlington
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Montealegre del Castillo'] [{'concept': 'common name'}, 'place of birth', 'Darlington']
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { ?u property:place_of_birth resource:Montealegre_del_Castillo . ?u rdf:type ontology:common_name } UNION { ?u property:place_of_birth resource:Darlington . ?u rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by exactly 3 people ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?r = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?r = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?r = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?r ) WHERE { ?e property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?r = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1014709
P276
Q132241
USER
Which festival is situated at Cieza ?
(c(Q132241),P276,Q1014709)
action filter_type
action find_reverse
entity Q1014709
relation P276
type Q132241
[{'concept': 'Q132241'}, 'P276', 'Q1014709']
SELECT DISTINCT ?z WHERE { ?z property:P276 resource:Q1014709 . ?z rdf:type ontology:Q132241 }
Cieza
action filter_type
action find_reverse
entity Cieza
relation location
type festival
[{'concept': 'festival'}, 'location', 'Cieza']
SELECT DISTINCT ?z WHERE { ?z property:location resource:Cieza . ?z rdf:type ontology:festival }
[]
festival
Q6124511
SYSTEM
Holy Week in Cieza
Q6124511
(c(Q132241),P276,Q1014709)
action filter_type
action find_reverse
entity Q1014709
relation P276
type Q132241
[ANSWER] is situated at Cieza
[{'concept': 'Q132241'}, 'P276', 'Q1014709']
SELECT DISTINCT ?z WHERE { ?z property:P276 resource:Q1014709 . ?z rdf:type ontology:Q132241 }
Holy Week in Cieza
Holy Week in Cieza is situated at Cieza
Holy Week in Cieza
action filter_type
action find_reverse
entity Cieza
relation location
type festival
[{'concept': 'festival'}, 'location', 'Cieza']
SELECT DISTINCT ?z WHERE { ?z property:location resource:Cieza . ?z rdf:type ontology:festival }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1014709
P1001
Q12737077
USER
Which occupation has jurisdiction over Cieza ?
(c(Q12737077),P1001,Q1014709)
action filter_type
action find_reverse
entity Q1014709
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1014709']
SELECT DISTINCT ?t WHERE { ?t property:P1001 resource:Q1014709 . ?t rdf:type ontology:Q12737077 }
Cieza
action filter_type
action find_reverse
entity Cieza
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Cieza']
SELECT DISTINCT ?t WHERE { ?t property:applies_to_jurisdiction resource:Cieza . ?t rdf:type ontology:occupation }
[]
occupation
Q26690237
SYSTEM
mayor of Cieza
Q26690237
(c(Q12737077),P1001,Q1014709)
action filter_type
action find_reverse
entity Q1014709
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over Cieza
[{'concept': 'Q12737077'}, 'P1001', 'Q1014709']
SELECT DISTINCT ?t WHERE { ?t property:P1001 resource:Q1014709 . ?t rdf:type ontology:Q12737077 }
mayor of Cieza
The mayor of Cieza has jurisdiction over Cieza
mayor of Cieza
action filter_type
action find_reverse
entity Cieza
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Cieza']
SELECT DISTINCT ?t WHERE { ?t property:applies_to_jurisdiction resource:Cieza . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1014709
P17
Q15617994
USER
Which administrative territory is Cieza situated in ?
(Q1014709,P17,c(Q15617994))
action filter_type
action find
entity Q1014709
relation P17
type Q15617994
['Q1014709', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1014709 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Cieza
action filter_type
action find
entity Cieza
relation country
type designation for an administrative territorial entity
['Cieza', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Cieza property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1014709,P17,c(Q15617994))
action filter_type
action find
entity Q1014709
relation P17
type Q15617994
Cieza is situated in [ANSWER]
['Q1014709', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1014709 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Spain
Cieza is situated in Spain
Spain
action filter_type
action find
entity Cieza
relation country
type designation for an administrative territorial entity
['Cieza', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Cieza property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]