Simple Question (Direct)
Simple Question
Q2903443
P21
Q290
USER
What is the sex of Danny Clapton ?
(Q2903443,P21,c(Q290))
action filter_type
action find
entity Q2903443
relation P21
type Q290
['Q2903443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2903443 property:P21 ?p . ?p rdf:type ontology:Q290 }
Danny Clapton
action filter_type
action find
entity Danny Clapton
relation gender
type sex
['Danny Clapton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Danny_Clapton property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2903443,P21,c(Q290))
action filter_type
action find
entity Q2903443
relation P21
type Q290
The sex of Danny Clapton is the [ANSWER]
['Q2903443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2903443 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Danny Clapton is the male
male
action filter_type
action find
entity Danny Clapton
relation gender
type sex
['Danny Clapton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Danny_Clapton property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2903443
P106
Q12737077
USER
What is the profession of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2903443
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2903443 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Danny Clapton
action filter_type
action find
entity Danny Clapton
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Danny_Clapton property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2903443
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2903443 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
association football player
The profession of that person is an association football player
association football player
action filter_type
action find
entity Danny Clapton
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Danny_Clapton property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4022614 Q937857
P425 P641
Q349
USER
Which sports have association football player as the associated fields of occupation and did Yaya Soumahoro participate in ?
AND((Q937857,P425,c(Q349)), (Q4022614,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q4022614
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q4022614', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { resource:Q937857 property:P425 ?d . resource:Q4022614 property:P641 ?d . ?d rdf:type ontology:Q349 }
Yaya Soumahoro association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Yaya Soumahoro
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Yaya Soumahoro', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { resource:association_football_player property:field_of_this_occupation ?d . resource:Yaya_Soumahoro property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q4022614,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q4022614
relation P641
type Q349
Team [ANSWER] have [ANSWER] player as the associated fields of occupation and did Yaya Soumahoro participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q4022614', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { resource:Q937857 property:P425 ?d . resource:Q4022614 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
Team association football have association football player as the associated fields of occupation and did Yaya Soumahoro participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Yaya Soumahoro
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Yaya Soumahoro', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { resource:association_football_player property:field_of_this_occupation ?d . resource:Yaya_Soumahoro property:sport ?d . ?d rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of atleast 5 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P417 ?r . ?r rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?r } . FILTER ( ?z >= 5 ) }
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 5
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:patron_saint ?r . ?r rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?r } . FILTER ( ?z >= 5 ) }
[]
common name occupation
SYSTEM
2
Q43982 Q179718
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P417 ?r . ?r rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?r } . FILTER ( ?z >= 5 ) }
Bartholomew the Apostle Catherine of Alexandria
2
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 5
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:patron_saint ?r . ?r rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?r } . FILTER ( ?z >= 5 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P495
Q1496967
USER
Which territory is the origin of association football ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?d WHERE { resource:Q2736 property:P495 ?d . ?d rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:association_football property:country_of_origin ?d . ?d rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the origin of association football
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?d WHERE { resource:Q2736 property:P495 ?d . ?d rdf:type ontology:Q1496967 }
England
England is the origin of association football
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:association_football property:country_of_origin ?d . ?d rdf:type ontology:territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17382019 Q2903443
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Danny Clapton or Olof Lagus ?
OR((Q2903443,P27,c(Q15617994)), (Q17382019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2903443
relation P27
action find
entity Q17382019
relation P27
type Q15617994
{'OR': [['Q2903443', 'P27', {'concept': 'Q15617994'}], ['Q17382019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2903443 property:P27 ?q } UNION { resource:Q17382019 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Olof Lagus Danny Clapton
action filter_type
action union
action find
entity Danny Clapton
relation country of citizenship
action find
entity Olof Lagus
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Danny Clapton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olof Lagus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Danny_Clapton property:country_of_citizenship ?q } UNION { resource:Olof_Lagus property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q145
SYSTEM
Finland, United Kingdom
Q33 Q145
OR((Q2903443,P27,c(Q15617994)), (Q17382019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2903443
relation P27
action find
entity Q17382019
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Danny Clapton or Olof Lagus
{'OR': [['Q2903443', 'P27', {'concept': 'Q15617994'}], ['Q17382019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2903443 property:P27 ?q } UNION { resource:Q17382019 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Finland United Kingdom
Finland and United Kingdom are the countries of citizenship of Danny Clapton or Olof Lagus
Finland United Kingdom
action filter_type
action union
action find
entity Danny Clapton
relation country of citizenship
action find
entity Olof Lagus
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Danny Clapton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olof Lagus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Danny_Clapton property:country_of_citizenship ?q } UNION { resource:Olof_Lagus property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have adopted min number of people or holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmin
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?a rdf:type ?n } GROUP BY ?e } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?p rdf:type ?d } GROUP BY ?f } }
action argmin
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:common_name ) ( ontology:holiday ) } . ?a rdf:type ?n } GROUP BY ?e } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:common_name ) ( ontology:holiday ) } . ?p rdf:type ?d } GROUP BY ?f } }
[]
common name holiday designation for an administrative territorial entity
Q155 Q478277 Q13619
SYSTEM
Brazil, Castiglione di Sicilia, Cosenza
Q51179 Q265483 Q18339 Q268902 Q124005 Q43005 Q43000 Q39633 Q56075 Q42950 Q386898 Q490936 Q20203 Q9525 Q9520 Q18022 Q18348 Q283857 Q112226 Q18029 Q206966 Q155 Q42896 Q216492 Q490770 Q17268 Q54612 Q9065 Q54617 Q267241 Q42974 Q390108 Q51202 Q54751 Q58890 Q51370 Q42110 Q224813 Q252343 Q103999 Q52624 Q50134 Q478277 Q17821 Q188499 Q54585 Q95069 Q19277 Q186538 Q294805 Q18075 Q283697 Q39263 Q100404 Q9569 Q20387 Q34519 Q42777 Q198320 Q34694 Q9105 Q39835 Q46357 Q111415 Q56048 Q490412 Q39910 Q22170 Q58719 Q490907 Q265588 Q244048 Q94779 Q53946 Q10234 Q10231 Q10339 Q53492 Q40336 Q53881 Q295289 Q53883 Q42300 Q13649 Q25175 Q53288 Q17811 Q50165 Q265498 Q18088 Q1465 Q270578 Q53835 Q478925 Q285110 Q430988 Q35220 Q91160 Q111602 Q242710 Q216853 Q58461 Q20353 Q9435 Q20056 Q20435 Q51442 Q117471 Q36471 Q53304 Q17350 Q53909 Q271011 Q53903 Q18382 Q20128 Q23285 Q52026 Q72272 Q42343 Q326968 Q42266 Q42260 Q10200 Q24896 Q53876 Q207395 Q103768 Q20244 Q46746 Q42744 Q100094 Q298424 Q20405 Q83083 Q493482 Q39912 Q22182 Q42512 Q52191 Q340908 Q34386 Q72732 Q101648 Q391349 Q51274 Q52132 Q54705 Q91228 Q53355 Q9447 Q52102 Q53957 Q54673 Q54672 Q42963 Q124979 Q218027 Q53686 Q200925 Q18394 Q72712 Q23706 Q20530 Q42318 Q39862 Q54516 Q17804 Q53511 Q20431 Q54685 Q20184 Q283554 Q477618 Q46673 Q51358 Q81151 Q39227 Q48092 Q42557 Q53995 Q56085 Q53260 Q17796 Q18388 Q41077 Q55054 Q80655 Q52146 Q53508 Q40913 Q25187 Q25189 Q168551 Q22216 Q101251 Q9493 Q286671 Q390646 Q82755 Q23592 Q52038 Q23178 Q288273 Q54643 Q496978 Q46968 Q10211 Q16337 Q326780 Q100070 Q34579 Q20503 Q267032 Q382482 Q55017 Q51360 Q43037 Q53212 Q185748 Q51460 Q20170 Q102781 Q52179 Q58549 Q51926 Q23232 Q42629 Q54636 Q496936 Q105325 Q46870 Q91243 Q51812 Q72708 Q270613 Q19937 Q42249 Q42367 Q54699 Q54591 Q20191 Q46833 Q42391 Q386350 Q17378 Q42565 Q47046 Q19944 Q13619 Q341096 Q382223 Q53397 Q42403 Q56091 Q56090 Q53159 Q53152 Q39070 Q54035 Q80851 Q54034 Q103297 Q43040 Q40964 Q112019 Q39933 Q224176 Q54723 Q477800 Q19915 Q46282 Q13320 Q53732 Q34791 Q20389 Q59269 Q59265 Q20585 Q42208 Q53824 Q9028 Q34638 Q40094 Q34703 Q23648 Q9187 Q111147 Q488240 Q49603 Q52953 Q20299 Q39849 Q50079 Q9428 Q9336
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action argmin
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
[ANSWERS] have adopted min number of people or holidays as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?a rdf:type ?n } GROUP BY ?e } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?p rdf:type ?d } GROUP BY ?f } }
Altino, Abruzzo Campomorone Aisone Diano Castello Falconara Marittima Sesto San Giovanni Lomagna Cairate Monsampolo del Tronto San Martino in Strada Nughedu Santa Vittoria Belmonte Mezzagno Montemale di Cuneo Osasio Orio Canavese Bioglio Bagnasco Decimoputzu Vobarno Callabiana Gabicce Mare Brazil Albairate Borgo a Mozzano San Giuseppe Jato Belforte Monferrato Gerace Borgomasino Laganadi Favale di Malvaro Cesano Boscone Anela Castiglione Messer Marino Zaccanopoli Sant'Angelo d'Alife Manoppello Bellinzago Lombardo Lampedusa e Linosa Eppan an der Weinstraße Chiari Noepoli Rocca di Botte Castiglione di Sicilia Mombaldone Castel del Piano Calanna Antegnate Cerignola Arzachena Gadoni Graglia Burcei Sernio Comun Nuovo Pianezza Poggio a Caiano Maserà di Padova Abbiategrasso Ziano di Fiemme Fiesso Umbertiano Buriasco Bianzone Breganze Polpenazze del Garda Castorano Priolo Gargallo Azzio Cavaglio d'Agogna Mondragone Scillato Crocefieschi Argegno Castel San Pietro Terme Rende Rocca Canavese Rivoli Venaria Reale Andali Gravellona Lomellina Fiumefreddo Bruzio Noragugume Frascineto Comazzo Nuoro Postua Mortegliano Frinco Trasacco Ceranesi Mottalciata Feltre Calizzano Belmonte Calabro Trecastagni Seulo Alessandria della Rocca Montjovet Cetona Rezzato Guidonia Montecelio Camaiore Camigliano Piobesi d'Alba Lugnacco Frabosa Soprana Sale delle Langhe Colledara Trevi nel Lazio Pompei Pasian di Prato Cremolino Mangone Osiglia Malito Bra Magliano Alpi Cannero Riviera Montemesola Monte di Procida Guidizzolo Tenno, Trentino Cervignano d'Adda Montevecchia Porte Borgo d'Ale Domanico Montecopiolo Capriano del Colle Murello Susegana Spino d'Adda San Felice sul Panaro Pergine Valsugana Roascio Monte San Giusto Librizzi Usmate Velate Colazza Vizzolo Predabissi Sannicola Luogosanto Trebaseleghe Vico Equense Telgate Santa Maria Coghinas Roccamontepiano Collepasso Drapia Monteriggioni San Giorgio di Nogaro Lusigliè Subbiano San Cosmo Albanese Sinopoli Siderno Senna Lodigiana Serra San Quirico Zoagli San Floro Lona-Lases Canale Torre Annunziata Trasquera Verduno Terranova dei Passerini Menarola San Mauro Marchesato Cortiglione Conflenti Rossana Terranova Sappo Minulio Monasterolo Casotto Armungia Resuttano Spresiano Civitella Casanova Ogliastro Cilento Ronco Briantino Cologna Veneta Pandino Saracena Palmiano Flaibano Cisterna d'Asti Brossasco Lavena Ponte Tresa Mirabella Eclano Bellizzi Guagnano Cerva Caiolo Rimella Riva Valdobbia Caselle Landi Dormelletto Montello, Lombardy Monteu da Po Santadi Cargeghe Londa, Tuscany Gurro Statte Bisceglie Serrenti Roghudi Roccapalumba Noale Quagliuzzo Novi Ligure Strigno Montefiorino Arre Sommariva del Bosco Santo Stefano d'Aveto Aidomaggiore Casalbore Corvara Annone di Brianza Aiello del Friuli Sant'Elia a Pianisi Pietracamela Martiniana Po Gragnano Trebbiense Porto Cesareo Castel Campagnano Faeto Bannio Anzino Parabiago Platì Sciara Nuvolento Bardolino Monteroni d'Arbia Alberobello Terzigno Celle Ligure Cerretto Langhe Mulazzano Valera Fratta Brognaturo Caraffa del Bianco Monforte d'Alba Albettone Airuno Masullas Malvicino Oggiono Silea Ceva Cosenza Trinità d'Agultu e Vignola Romana, Sardinia Villa Vicentina Acquanegra Cremonese Venarotta Spinetoli Cavasso Nuovo Azzano Decimo Andalo Valtellino Verbicaro Celle di Bulgheria Vaccarizzo Albanese Vicopisano Secugnago Rogolo Sirmione Cadrezzate Longone Sabino Nardodipace Vallelunga Pratameno Castellino Tanaro Castel d'Azzano Savona Tiriolo Aymavilles Montemurlo Montelparo Montefalcone Appennino Villanova Mondovì Malagnino Alessandria del Carretto Balme Arquà Petrarca Morbegno Torreglia Montecrestese Carmagnola Carpineti Lentini Ponte Buggianese Alfonsine Paroldo Robbio Celano Locana Druento
Brazil, Castiglione di Sicilia and Cosenza have adopted min number of people or holidays as their patron saint
Brazil Castiglione di Sicilia Cosenza
action argmin
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?x ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:common_name ) ( ontology:holiday ) } . ?a rdf:type ?n } GROUP BY ?e } } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:common_name ) ( ontology:holiday ) } . ?p rdf:type ?d } GROUP BY ?f } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q155
P194
Q1752346
USER
Which assembly is the representative body for that administrative territory ?
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q155 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
Brazil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Brazil property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
assembly
Clarification for simple ques.
Q155
SYSTEM
Did you mean Brazil ?
Q155 Q478277 Q13619
(Q155,P194,c(Q1752346)) (Q478277,P194,c(Q1752346)) (Q13619,P194,c(Q1752346))
[ANSWER]
['Q155', 'P194', {'concept': 'Q1752346'}] ['Q478277', 'P194', {'concept': 'Q1752346'}] ['Q13619', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q155 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
Brazil Castiglione di Sicilia Cosenza
Did you mean Brazil ?
Brazil
['Brazil', 'legislative body', {'concept': 'assembly'}] ['Castiglione di Sicilia', 'legislative body', {'concept': 'assembly'}] ['Cosenza', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Brazil property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
USER
Yes
(Q155,P194,c(Q1752346))
['Q155', 'P194', {'concept': 'Q1752346'}]
['Brazil', 'legislative body', {'concept': 'assembly'}]
[]
Q949699
SYSTEM
National Congress of Brasil
Q949699
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
[ANSWER] is the representative body for that administrative territory
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q155 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
National Congress of Brasil
National Congress of Brasil is the representative body for that administrative territory
National Congress of Brasil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Brazil property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q486568 Q33
P47
Q15617994
USER
Which administrative territories have a shared border with Finland or Eisenberg ?
OR((Q33,P47,c(Q15617994)), (Q486568,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q33
relation P47
action find
entity Q486568
relation P47
type Q15617994
{'OR': [['Q33', 'P47', {'concept': 'Q15617994'}], ['Q486568', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q486568 property:P47 ?k } UNION { resource:Q33 property:P47 ?k } } }
Eisenberg Finland
action filter_type
action union
action find
entity Finland
relation shares border with
action find
entity Eisenberg
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Finland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Eisenberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Eisenberg property:shares_border_with ?k } UNION { resource:Finland property:shares_border_with ?k } } }
[]
designation for an administrative territorial entity
Q658965 Q20 Q567960 Q649576 Q567896 Q159 Q665593 Q34 Q568010 Q565977
SYSTEM
Some of them are Hainspitz, Norway, Gösen, Petersberg, Silbitz, Russia, Weißenborn, Sweden, Tautenhain, Rauda
Q649576 Q159 Q658965 Q665593 Q34 Q20 Q568010 Q565977 Q567896 Q565987 Q567960
OR((Q33,P47,c(Q15617994)), (Q486568,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q33
relation P47
action find
entity Q486568
relation P47
type Q15617994
[ANSWERS] have a shared border with Finland or Eisenberg
{'OR': [['Q33', 'P47', {'concept': 'Q15617994'}], ['Q486568', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q486568 property:P47 ?k } UNION { resource:Q33 property:P47 ?k } } }
Petersberg Russia Hainspitz Weißenborn Sweden Norway Tautenhain Rauda Silbitz Heideland Gösen
Hainspitz, Norway, Gösen, Petersberg, Silbitz, Russia, Weißenborn, Sweden, Tautenhain and Rauda have a shared border with Finland or Eisenberg
Hainspitz Norway Gösen Petersberg Silbitz Russia Weißenborn Sweden Tautenhain Rauda
action filter_type
action union
action find
entity Finland
relation shares border with
action find
entity Eisenberg
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Finland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Eisenberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Eisenberg property:shares_border_with ?k } UNION { resource:Finland property:shares_border_with ?k } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649576
P17
Q1048835
USER
Which political territory does that administrative territory belong to ?
(Q649576,P17,c(Q1048835))
action filter_type
action find
entity Q649576
relation P17
type Q1048835
['Q649576', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q649576 property:P17 ?q . ?q rdf:type ontology:Q1048835 }
Petersberg
action filter_type
action find
entity Petersberg
relation country
type political territorial entity
['Petersberg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Petersberg property:country ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q649576
SYSTEM
Did you mean Petersberg ?
Q658965 Q20 Q567960 Q649576 Q567896 Q159 Q665593 Q34 Q568010 Q565977
(Q658965,P17,c(Q1048835)) (Q20,P17,c(Q1048835)) (Q567960,P17,c(Q1048835)) (Q649576,P17,c(Q1048835)) (Q567896,P17,c(Q1048835)) (Q159,P17,c(Q1048835)) (Q665593,P17,c(Q1048835)) (Q34,P17,c(Q1048835)) (Q568010,P17,c(Q1048835)) (Q565977,P17,c(Q1048835))
[ANSWER]
['Q658965', 'P17', {'concept': 'Q1048835'}] ['Q20', 'P17', {'concept': 'Q1048835'}] ['Q567960', 'P17', {'concept': 'Q1048835'}] ['Q649576', 'P17', {'concept': 'Q1048835'}] ['Q567896', 'P17', {'concept': 'Q1048835'}] ['Q159', 'P17', {'concept': 'Q1048835'}] ['Q665593', 'P17', {'concept': 'Q1048835'}] ['Q34', 'P17', {'concept': 'Q1048835'}] ['Q568010', 'P17', {'concept': 'Q1048835'}] ['Q565977', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q649576 property:P17 ?q . ?q rdf:type ontology:Q1048835 }
Hainspitz Norway Gösen Petersberg Silbitz Russia Weißenborn Sweden Tautenhain Rauda
Did you mean Petersberg ?
Petersberg
['Hainspitz', 'country', {'concept': 'political territorial entity'}] ['Norway', 'country', {'concept': 'political territorial entity'}] ['Gösen', 'country', {'concept': 'political territorial entity'}] ['Petersberg', 'country', {'concept': 'political territorial entity'}] ['Silbitz', 'country', {'concept': 'political territorial entity'}] ['Russia', 'country', {'concept': 'political territorial entity'}] ['Weißenborn', 'country', {'concept': 'political territorial entity'}] ['Sweden', 'country', {'concept': 'political territorial entity'}] ['Tautenhain', 'country', {'concept': 'political territorial entity'}] ['Rauda', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Petersberg property:country ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q649576,P17,c(Q1048835))
['Q649576', 'P17', {'concept': 'Q1048835'}]
['Petersberg', 'country', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q649576,P17,c(Q1048835))
action filter_type
action find
entity Q649576
relation P17
type Q1048835
That administrative territory belongs to Federal [ANSWER]
['Q649576', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q649576 property:P17 ?q . ?q rdf:type ontology:Q1048835 }
Germany
That administrative territory belongs to Federal Germany
Germany
action filter_type
action find
entity Petersberg
relation country
type political territorial entity
['Petersberg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Petersberg property:country ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q164193 Q486568
P19
Q502895
USER
Which people have birthplace at Eisenberg or Lviv Oblast ?
OR((c(Q502895),P19,Q486568), (c(Q502895),P19,Q164193))
action filter_type
action union
action find_reverse
entity Q486568
relation P19
action find_reverse
entity Q164193
relation P19
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q486568'], [{'concept': 'Q502895'}, 'P19', 'Q164193']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { VALUES ( ?n ) { ( resource:Q486568 ) ( resource:Q164193 ) } . ?y property:P19 ?n } }
Lviv Oblast Eisenberg
action filter_type
action union
action find_reverse
entity Eisenberg
relation place of birth
action find_reverse
entity Lviv Oblast
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Eisenberg'], [{'concept': 'common name'}, 'place of birth', 'Lviv Oblast']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { VALUES ( ?n ) { ( resource:Eisenberg ) ( resource:Lviv_Oblast ) } . ?y property:place_of_birth ?n } }
[]
common name
Q1284638 Q1610786 Q213585 Q65409 Q5406982 Q1335927 Q2129411 Q292047 Q63590 Q4215135
SYSTEM
Some of them are Günter Ranft, Hermann Burkhardt, Karl Christian Friedrich Krause, Johann Gottlieb Heineccius, Eugen Viktor Feller, Emil Böhme, Ralf Strogies, Princess Marie of Saxe-Altenburg, Prince Moritz of Saxe-Altenburg, Bohdan Karkovskyi
Q27049147 Q370346 Q1438614 Q65409 Q2129411 Q4215135 Q19561086 Q20535311 Q833289 Q63590 Q1694819 Q76878 Q1528914 Q12100652 Q101400 Q5406982 Q292047 Q683547 Q1610786 Q1160893 Q1335927 Q213585 Q1284638 Q289245 Q5220766 Q1745524
OR((c(Q502895),P19,Q486568), (c(Q502895),P19,Q164193))
action filter_type
action union
action find_reverse
entity Q486568
relation P19
action find_reverse
entity Q164193
relation P19
type Q502895
[ANSWERS] have birthplace at Eisenberg or Lviv Oblast
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q486568'], [{'concept': 'Q502895'}, 'P19', 'Q164193']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { VALUES ( ?n ) { ( resource:Q486568 ) ( resource:Q164193 ) } . ?y property:P19 ?n } }
Mykola Buy Maxim Hermaniuk Thomas Ammer Johann Gottlieb Heineccius Ralf Strogies Bohdan Karkovskyi Svyatoslav Kozlovskyi Maryan Mysyk Peter Lesser Prince Moritz of Saxe-Altenburg Alfred Tischendorf Bruno Bauer Pavlo Wasylyk Andriy Deshchytsya Gerhard Buchwald Eugen Viktor Feller Princess Marie of Saxe-Altenburg Miroslav Stefan Marusyn Hermann Burkhardt Daniel Gottfried Werner Emil Böhme Karl Christian Friedrich Krause Günter Ranft Lesya Kalytovska Danny Reuther Klaus Olshausen
Günter Ranft, Hermann Burkhardt, Karl Christian Friedrich Krause, Johann Gottlieb Heineccius, Eugen Viktor Feller, Emil Böhme, Ralf Strogies, Princess Marie of Saxe-Altenburg, Prince Moritz of Saxe-Altenburg and Bohdan Karkovskyi have birthplace at Eisenberg or Lviv Oblast
Günter Ranft Hermann Burkhardt Karl Christian Friedrich Krause Johann Gottlieb Heineccius Eugen Viktor Feller Emil Böhme Ralf Strogies Princess Marie of Saxe-Altenburg Prince Moritz of Saxe-Altenburg Bohdan Karkovskyi
action filter_type
action union
action find_reverse
entity Eisenberg
relation place of birth
action find_reverse
entity Lviv Oblast
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Eisenberg'], [{'concept': 'common name'}, 'place of birth', 'Lviv Oblast']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { VALUES ( ?n ) { ( resource:Eisenberg ) ( resource:Lviv_Oblast ) } . ?y property:place_of_birth ?n } }
[]