Simple Question (Direct)
Simple Question
Q1467094
P39
Q12737077
USER
Which occupation was a position held by Fritz Krauchthaler ?
(Q1467094,P39,c(Q12737077))
action filter_type
action find
entity Q1467094
relation P39
type Q12737077
['Q1467094', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1467094 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Fritz Krauchthaler
action filter_type
action find
entity Fritz Krauchthaler
relation position held
type occupation
['Fritz Krauchthaler', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Fritz_Krauchthaler property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q18510613
SYSTEM
Member of the Swiss Council of States
Q18510613
(Q1467094,P39,c(Q12737077))
action filter_type
action find
entity Q1467094
relation P39
type Q12737077
[ANSWER] was a position held by Fritz Krauchthaler
['Q1467094', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1467094 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Member of the Swiss Council of States
Member of the Swiss Council of States was a position held by Fritz Krauchthaler
Member of the Swiss Council of States
action filter_type
action find
entity Fritz Krauchthaler
relation position held
type occupation
['Fritz Krauchthaler', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Fritz_Krauchthaler property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1467094
P21
Q290
USER
What is the sex of Fritz Krauchthaler ?
(Q1467094,P21,c(Q290))
action filter_type
action find
entity Q1467094
relation P21
type Q290
['Q1467094', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q1467094 property:P21 ?m . ?m rdf:type ontology:Q290 }
Fritz Krauchthaler
action filter_type
action find
entity Fritz Krauchthaler
relation gender
type sex
['Fritz Krauchthaler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Fritz_Krauchthaler property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1467094,P21,c(Q290))
action filter_type
action find
entity Q1467094
relation P21
type Q290
The sex of Fritz Krauchthaler is the [ANSWER]
['Q1467094', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q1467094 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of Fritz Krauchthaler is the male
male
action filter_type
action find
entity Fritz Krauchthaler
relation gender
type sex
['Fritz Krauchthaler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Fritz_Krauchthaler property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q27107034 Q1467094
P21
Q290
USER
And also Torsak Sa-ardeiem
AND((Q1467094,P21,c(Q290)), (Q27107034,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1467094
relation P21
action find
entity Q27107034
relation P21
type Q290
{'AND': [['Q1467094', 'P21', {'concept': 'Q290'}], ['Q27107034', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?g WHERE { resource:Q27107034 property:P21 ?g . resource:Q1467094 property:P21 ?g . ?g rdf:type ontology:Q290 }
Torsak Sa-ardeiem Fritz Krauchthaler
action filter_type
action intersection
action find
entity Fritz Krauchthaler
relation gender
action find
entity Torsak Sa-ardeiem
relation gender
type sex
{'AND': [['Fritz Krauchthaler', 'gender', {'concept': 'sex'}], ['Torsak Sa-ardeiem', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?g WHERE { resource:Torsak_Sa-ardeiem property:gender ?g . resource:Fritz_Krauchthaler property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q1467094,P21,c(Q290)), (Q27107034,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q1467094
relation P21
action find
entity Q27107034
relation P21
type Q290
[ANSWER]
{'AND': [['Q1467094', 'P21', {'concept': 'Q290'}], ['Q27107034', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?g WHERE { resource:Q27107034 property:P21 ?g . resource:Q1467094 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Fritz Krauchthaler
relation gender
action find
entity Torsak Sa-ardeiem
relation gender
type sex
{'AND': [['Fritz Krauchthaler', 'gender', {'concept': 'sex'}], ['Torsak Sa-ardeiem', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?g WHERE { resource:Torsak_Sa-ardeiem property:gender ?g . resource:Fritz_Krauchthaler property:gender ?g . ?g rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q118087
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of around the same number of occupations as Ludmila of Bohemia ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q118087
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?t ) WHERE { ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q118087 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?t = ?w ) }
Ludmila of Bohemia
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Ludmila of Bohemia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?t ) WHERE { ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Ludmila_of_Bohemia property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?t = ?w ) }
[]
common name occupation
SYSTEM
266
Q2366998 Q561838 Q380092 Q129674 Q133704 Q43945 Q3922154 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q31966 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q1502088 Q8413 Q558148 Q160373 Q515953 Q1274242 Q443392 Q379685 Q191479 Q42887 Q3745904 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q122376 Q145746 Q15284282 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q63070 Q134666 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q560531 Q4161703 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q445357 Q359878 Q190240 Q210096 Q1976199 Q3724316 Q1343711 Q3663117 Q534691 Q160374 Q442516 Q920226 Q283447 Q26486 Q158504 Q130005 Q740907 Q44258 Q70991 Q318974 Q312314 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q1269112 Q2424767 Q459032 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q118087
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?t ) WHERE { ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 . ?c property:P417 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q118087 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?t = ?w ) }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Jude the Apostle Prisco di Nocera Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Mark the Evangelist Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Maximilian of Lorch Romanus of Caesarea Saint Bibiana Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Callixtus I Joseph Adolphus Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus Mary Magdalene Stephen I Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Suitbert of Kaiserswerdt Dimitry Prilutsky Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Henry Erasmus of Formiae Cyprian Agnes of Rome Gaudentius of Novara Emilianus of Trevi Ephysius Castrese di Sessa Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Lambert of Maastricht Ladislaus I of Hungary Clement of Ohrid Edward the Confessor Barbatus of Benevento Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Bruno of Cologne Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Saint Ninian Anthony of Apamea Elizabeth Ann Seton Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
266
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Ludmila of Bohemia
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?t ) WHERE { ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation . ?c property:patron_saint ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Ludmila_of_Bohemia property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?t = ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q178706 Q502895 Q12737077
USER
Which occupations did max number of institutions or people appoint ?
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?i WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?p WHERE { VALUES ( ?h ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } . ?b rdf:type ?h } GROUP BY ?p } . FILTER ( ?s = ?k ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?i WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:institution ) ( ontology:common_name ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?p WHERE { VALUES ( ?h ) { ( ontology:institution ) ( ontology:common_name ) } . ?b rdf:type ?h } GROUP BY ?p } . FILTER ( ?s = ?k ) }
[]
institution common name occupation
Q4970706
SYSTEM
Federal Chancellor of Germany
Q4970706
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
Max number of institutions or people appointed by [ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?i WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?p WHERE { VALUES ( ?h ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } . ?b rdf:type ?h } GROUP BY ?p } . FILTER ( ?s = ?k ) }
Federal Chancellor of Germany
Max number of institutions or people appointed by Federal Chancellor of Germany
Federal Chancellor of Germany
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?i WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:institution ) ( ontology:common_name ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?p WHERE { VALUES ( ?h ) { ( ontology:institution ) ( ontology:common_name ) } . ?b rdf:type ?h } GROUP BY ?p } . FILTER ( ?s = ?k ) }
[]
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 patron saint of exactly 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P417 ?g . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?k = 2 ) }
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:patron_saint ?g . ?n rdf:type ontology:occupation . ?g rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?k = 2 ) }
[]
common name occupation
SYSTEM
10
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P417 ?g . ?n rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?k = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
10
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:patron_saint ?g . ?n rdf:type ontology:occupation . ?g rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?k = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1467094
P102
Q7210356
USER
Which political organizations are Fritz Krauchthaler a member of ?
(Q1467094,P102,c(Q7210356))
action filter_type
action find
entity Q1467094
relation P102
type Q7210356
['Q1467094', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { resource:Q1467094 property:P102 ?j . ?j rdf:type ontology:Q7210356 }
Fritz Krauchthaler
action filter_type
action find
entity Fritz Krauchthaler
relation member of political party
type political organization
['Fritz Krauchthaler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { resource:Fritz_Krauchthaler property:member_of_political_party ?j . ?j rdf:type ontology:political_organization }
[]
political organization
Q385258 Q477228
SYSTEM
Swiss People's Party, Party of Farmers, Traders and Independents
Q385258 Q477228
(Q1467094,P102,c(Q7210356))
action filter_type
action find
entity Q1467094
relation P102
type Q7210356
[ANSWERS]
['Q1467094', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { resource:Q1467094 property:P102 ?j . ?j rdf:type ontology:Q7210356 }
Swiss People's Party Party of Farmers, Traders and Independents
The Swiss People's Party and Party of Farmers, Traders and Independents are Fritz Krauchthaler a member of
Swiss People's Party Party of Farmers, Traders and Independents
action filter_type
action find
entity Fritz Krauchthaler
relation member of political party
type political organization
['Fritz Krauchthaler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { resource:Fritz_Krauchthaler property:member_of_political_party ?j . ?j rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q385258 Q477228
P102
Q502895
USER
Who are the members of those political organizations ?
(c(Q502895),P102,Q385258) (c(Q502895),P102,Q477228)
action filter_type
action find_reverse
entity prev_answer
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q385258'] [{'concept': 'Q502895'}, 'P102', 'Q477228']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q385258 ) ( resource:Q477228 ) } . ?x property:P102 ?o }
Swiss People's Party Party of Farmers, Traders and Independents
action filter_type
action find_reverse
entity prev_answer
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', "Swiss People's Party"] [{'concept': 'common name'}, 'member of political party', 'Party of Farmers, Traders and Independents']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:Swiss_People's_Party ) ( resource:Party_of_Farmers,_Traders_and_Independents ) } . ?x property:member_of_political_party ?o }
[]
common name
Q118558 Q2547232 Q2547232
SYSTEM
Walther Hofer for 2nd, 3rd, Thomas Aeschi for 1st
Q1419298 Q122878 Q119186 Q3435497 Q21294613 Q122845 Q119175 Q116074 Q119941 Q117941 Q3386949 Q497462 Q16101728 Q16672268 Q118071 Q1883801 Q1467094 Q1892517 Q2039735 Q116643 Q124169 Q1081950 Q2659795 Q119113 Q18347214 Q121160 Q18402639 Q15815388 Q1604098 Q120632 Q120634 Q120637 Q117165 Q3092449 Q1679016 Q15851951 Q1582102 Q119994 Q119997 Q19392547 Q120616 Q2239139 Q119987 Q122890 Q1086550 Q1341412 Q2543559 Q3433775 Q118565 Q1806332 Q118577 Q1437493 Q16526913 Q118541 Q119382 Q119388 Q118558 Q1509730 Q116500 Q3367471 Q1264296 Q1332705 Q3442486 Q1679368 Q121886 Q3386893 Q15824775 Q118502 Q1716933 Q3129527 Q1602401 Q3565885 Q122931 Q122935 Q2039182 Q16853639 Q2476723 Q3159705 Q122920 Q121851 Q813088 Q6373721 Q121845 Q121847 Q2416875 Q116475 Q1260057 Q121862 Q121868 Q21181009 Q2602264 Q121815 Q115614 Q2287058 Q118493 Q121837 Q116454 Q120728 Q21503267 Q1581440 Q116446 Q116442 Q1582811 Q677774 Q2076475 Q117154 Q117151 Q1580292 Q117149 Q1279795 Q1269072 Q1347268 Q2369033 Q123979 Q116419 Q2547232 Q1417673 Q550199 Q1226639 Q1350893 Q117117 Q1583965 Q1576098 Q17305567 Q3419515 Q21180030 Q117105 Q1782010 Q3590984 Q117136 Q117131 Q121347 Q123109 Q116891 Q121354 Q115533 Q115531 Q1456251 Q870066 Q116886 Q116834 Q2644792 Q120044 Q120883 Q121137 Q528262 Q120673 Q3184790 Q118471 Q546965 Q1685134 Q8316791 Q1528504 Q1600319 Q3489384 Q121166 Q374396 Q595834 Q120856 Q3105643 Q123857 Q21269511 Q15428425 Q120026 Q1685173 Q1330086 Q1254728 Q1037592 Q118324 Q551248 Q1870112 Q1578179 Q2077982 Q121287 Q118349 Q118341 Q1579685 Q121277 Q117403 Q663178 Q2977764 Q2544304 Q1505282 Q1087045 Q119047 Q118126 Q119873 Q118702 Q116490 Q116157 Q15805663 Q117805 Q118316 Q2177645 Q119811 Q119816 Q119077 Q2221105 Q119824 Q1581718 Q1336697 Q119404 Q119978 Q119410 Q534702 Q1672503 Q119424 Q558027 Q121662 Q119435 Q117169 Q1476422 Q162767 Q5218859 Q120100 Q2075137 Q119880 Q119884 Q119888 Q1085959 Q1466748 Q1579071 Q1741835 Q2851461 Q3351431 Q119484 Q1466820 Q17305571 Q2061077 Q15840032 Q1611990 Q16101728 Q1539314 Q1467094 Q2543940 Q2173417 Q2173618 Q2562030 Q1582102 Q1286238 Q2543559 Q1437493 Q2150009 Q1170976 Q1679368 Q1679098 Q1298741 Q2172727 Q1732694 Q1596855 Q1613376 Q1598645 Q2039809 Q1688042 Q1279795 Q2547232 Q1583965 Q1778762 Q1782010 Q1678908 Q1429738 Q2059903 Q1469017 Q1580978 Q1666715 Q1336210 Q125303 Q1579467 Q120184 Q125332 Q125346 Q2177645 Q115808 Q1359242 Q1579071 Q1741835 Q1357728
(c(Q502895),P102,Q385258) (c(Q502895),P102,Q477228)
action filter_type
action find_reverse
entity prev_answer
relation P102
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P102', 'Q385258'] [{'concept': 'Q502895'}, 'P102', 'Q477228']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q385258 ) ( resource:Q477228 ) } . ?x property:P102 ?o }
Pascal Furer Beatrice Simon Erich von Siebenthal Robert Iselin Marco Chiesa Hans Killer Ueli Amstad Adrian Amstutz Alice Glauser-Zufferey André Bugnon Pierre Schifferli Andreas Glarner Otto Bretscher Raymond Clottu Rudolf Joder Magdalena Martullo-Blocher Fritz Krauchthaler Marc-Roland Peter Otto Laubacher Christoffel Brändli Kurt Röthlisberger Christian Speck Beat Unternährer Stephan Schleiss Hans-Beat Uttinger Guy Parmelin Heinrich Schnyder Hermann Weyeneth Thomas Bodmer Josef Kunz Beat Arnold Pirmin Schwander Natalie Rickli Félix Glutz Jakob Freund Ueli Studer Hans Roth Rosmarie Widmer Gysel Thomas Müller Karl Schweizer Marcel Scherer Ernst Jaberg Martin Baltisser Markus Kägi Christopher Chandiramani Willi Neuenschwander Walter Baumann Rudolf Reichling Markus Hausammann Res Schmid Jean-Claude Mermoud Reinhard Müller André Rüegsegger Hansjörg Knecht Stefan Kölliker Albert Rösti Thomas Aeschi Ulrich Gadient Hans Kaufmann Pascal Junod Hans-Ueli Vogt Elmar Bigger Roselyne Crausaz Jakob Stucki Jean-Pierre Graber Pierre Rusconi Käthi Wälchli Roland Rino Büchel Jürg Stüssi-Lauterburg Heinz Brand Walter Stählin Walter Schmied Lieni Füglistaller André Reymond Otto Hess Otto Largiadèr Ulrich Siegrist Jacques Pagan Ernst Stocker Hermann Lei Beat Schori Verena Herzog Christoph Neuhaus Köbi Frei Theo Fischer Hannes Germann Rudolf Bieri Erich Hess Hans Diem Thomas Burgherr Yves Rüedi Walter Glur Toni Brunner Simeon Bühler Thomas de Courten Hansruedi Wandfluh Ulrich Schlüer Simon Schenk David Weiss Hans Müller Bruno Zuppiger Dominique Baettig Hans Uhlmann Toni Bortoluzzi Peter Kummer Christoph Mörgeli Hermann Bürgi Hans Hofmann Alfred Heer Ernst Steiner Jürg Leuthold Thomas Weber Susanna Daepp-Heiniger Ueli Maurer Caspar Baader Walther Hofer Gregor Rutz Markus Feldmann Dino Tamagni Erhard Meister Maximilian Reimann Hanspeter Fischer Hannes Taugwalder Werner Hösli Raphaël Rimaz Mauro Tuena Nadja Pieren Konrad Gisler Éric Bertinat Hans Fehr Hans Rutschmann Sebastian Frehner Oskar Freysinger Lukas Reimann Albert A. Stahel Rudolf Gnägi Adolf Ogi Fridolin Stucki Peter Spuhler Ulrich Giezendanner Yvette Estermann Alfred Bärtschi Heinz Tännler Céline Amaudruz Andreas Barraud Sylvia Flückiger-Bäni Jean-Pierre Grin-Hofmann Joseph Cottet Hansjörg Walter Eduard von Steiger Jean-Paul Flachsmann Oskar Bachmann Michael Götte Heinz Habegger Soli Pardo Andrea Geissbühler This Jenny Peter Schmid Rita Fuhrer Gilbert Catelain Christoph Blocher Franz Grüter Roland Lindner Roland Borer Jean-Pierre Berger Elisabeth Lardelli Jörg Krähenbühl Carl Eigenmann Alexander Baumann Paul Accola Lorenz Meyer Hans-Rudolf Nebiker Peter Sager Hans Egloff Alex Kuprecht Jürg Stahl Hans Geiger Felix Müri Andreas Aebi Friedrich Traugott Wahlen Claude Marcet Walter Frey Rico Wenger Christopher Vohdin Pierre-François Veillon Walter Wobmann Christian Miesch Werner Vetterli Max Binder Marcel Ospel Diana Gutjahr Jasmin Hutter Christoph von Rotz Ruth Im Obersteg Geiser Yves Nidegger Jakob Stark Thomas Fuchs Sandra Sollberger-Muff Ernst Landolt Hans Peter Ruprecht Emil Rahm Roland Eberle Yvan Perrin Peter Keller Angelika Zanolari Irene Enderli Monika Knill-Kradolfer Leon Schlumpf Michael E. Dreher Luzi Stamm Ernst Schibli Qaasim Illi Eveline Widmer-Schlumpf Daniel Streich Jean Henri Dunant Peter Gerber Thomas Hurter Alex Hürzeler Peter Föhn Christoph Stüssi Fritz Hofmann Hans Conzett Werner Martignoni Annelise Vaucher Olivier Wasmer Theophil Pfister Fritz Hösli Thomas Matter Paul Lüönd Peter Bernasconi Hermann Lindt Otto Bretscher Gottfried Lanz Fritz Krauchthaler Walter Degen Rudolf Meier Rudolf Reichling Werner Meister Hans Roth Richard Zschokke Walter Baumann Reinhard Müller Richard König Ernst Schmid Jakob Stucki Jakob Heusser Hans Burren Rudolf Gelpke Karl Renold Heinrich Brändli Louis-Samuel Roulet Heinrich Roman Abt Otto Locher Karl Steiner Ernst Steiner Walther Hofer Hanspeter Fischer Albert Brochon Konrad Gisler Jakob Baur Florian Imer Paul Gysler Fritz Zaugg Hans Lanz Alfred Held Emil Heller Dewet Buri Hans Fischer Eugen Bircher Otto Steiger Hans Stähli Ruth Im Obersteg Geiser Rudolf Minger Ernst Lieb Hans Conzett Werner Martignoni Ernst Bürki
The members of those political organizations are Thomas Aeschi, Walther Hofer and Walther Hofer
Thomas Aeschi Walther Hofer Walther Hofer
action filter_type
action find_reverse
entity prev_answer
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', "Swiss People's Party"] [{'concept': 'common name'}, 'member of political party', 'Party of Farmers, Traders and Independents']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:Swiss_People's_Party ) ( resource:Party_of_Farmers,_Traders_and_Independents ) } . ?x property:member_of_political_party ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q118558
P106
Q12737077
USER
What is the profession of Thomas Aeschi ?
(Q118558,P106,c(Q12737077))
action filter_type
action find
entity Q118558
relation P106
type Q12737077
['Q118558', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q118558 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Thomas Aeschi
action filter_type
action find
entity Thomas Aeschi
relation occupation
type occupation
['Thomas Aeschi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Thomas_Aeschi property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q118558,P106,c(Q12737077))
action filter_type
action find
entity Q118558
relation P106
type Q12737077
The profession of Thomas Aeschi is a [ANSWER]
['Q118558', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q118558 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
politician
The profession of Thomas Aeschi is a politician
politician
action filter_type
action find
entity Thomas Aeschi
relation occupation
type occupation
['Thomas Aeschi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Thomas_Aeschi property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Which human behaviour has that one as the associated field of occupation ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?t WHERE { resource:Q82955 property:P425 ?t . ?t rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?t WHERE { resource:politician property:field_of_this_occupation ?t . ?t rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has that one as the associated field of occupation
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?t WHERE { resource:Q82955 property:P425 ?t . ?t rdf:type ontology:Q3769299 }
politics
Politics has that one as the associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?t WHERE { resource:politician property:field_of_this_occupation ?t . ?t rdf:type ontology:human_behaviour }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7330070
Q3769299
USER
And how about foreign minister?
(Q7330070,P425,c(Q3769299))
action filter_type
action find
entity Q7330070
relation P425
type Q3769299
['Q7330070', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?j WHERE { resource:Q7330070 property:P425 ?j . ?j rdf:type ontology:Q3769299 }
foreign minister
action filter_type
action find
entity foreign minister
relation field of this occupation
type human behaviour
['foreign minister', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?j WHERE { resource:foreign_minister property:field_of_this_occupation ?j . ?j rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q7330070,P425,c(Q3769299))
action filter_type
action find
entity Q7330070
relation P425
type Q3769299
[ANSWER]
['Q7330070', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?j WHERE { resource:Q7330070 property:P425 ?j . ?j rdf:type ontology:Q3769299 }
politics
politics
action filter_type
action find
entity foreign minister
relation field of this occupation
type human behaviour
['foreign minister', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?j WHERE { resource:foreign_minister property:field_of_this_occupation ?j . ?j rdf:type ontology:human_behaviour }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4970706
P1001
Q1048835
USER
Which political territory belongs to jurisdiction of Federal Chancellor of Germany ?
(Q4970706,P1001,c(Q1048835))
action filter_type
action find
entity Q4970706
relation P1001
type Q1048835
['Q4970706', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1048835 . resource:Q4970706 property:P1001 ?j }
Federal Chancellor of Germany
action filter_type
action find
entity Federal Chancellor of Germany
relation applies to jurisdiction
type political territorial entity
['Federal Chancellor of Germany', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_territorial_entity . resource:Federal_Chancellor_of_Germany property:applies_to_jurisdiction ?j }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q4970706,P1001,c(Q1048835))
action filter_type
action find
entity Q4970706
relation P1001
type Q1048835
Of [ANSWER] belongs to jurisdiction of Federal Chancellor of [ANSWER]
['Q4970706', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1048835 . resource:Q4970706 property:P1001 ?j }
Germany
Of Germany belongs to jurisdiction of Federal Chancellor of Germany
Germany
action filter_type
action find
entity Federal Chancellor of Germany
relation applies to jurisdiction
type political territorial entity
['Federal Chancellor of Germany', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_territorial_entity . resource:Federal_Chancellor_of_Germany property:applies_to_jurisdiction ?j }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q5033232
P530
Q15617994
USER
Does Canon Elementary School District have diplomatic relationships with that political territory ?
(Q183,P530,Q5033232)
action is_in
entity Q5033232
action find
entity Q183
relation P530
['Q183', 'P530', 'Q5033232']
ASK WHERE { resource:Q183 property:P530 resource:Q5033232 }
Germany Canon Elementary School District
action is_in
entity Canon Elementary School District
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Canon Elementary School District']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Canon_Elementary_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q5033232)
action is_in
entity Q5033232
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q5033232']
ASK WHERE { resource:Q183 property:P530 resource:Q5033232 }
No
action is_in
entity Canon Elementary School District
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Canon Elementary School District']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Canon_Elementary_School_District }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with approximately 10 political territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 10
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?a ) WHERE { ?f property:P530 ?p . ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?a = 10 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?a ) WHERE { ?f property:diplomatic_relation ?p . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?a = 10 ) }
[]
political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 10
[ANSWER] have diplomatic associations with approximately 10 political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?a ) WHERE { ?f property:P530 ?p . ?f rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?a = 10 ) }
Georgia
Georgia have diplomatic associations with approximately 10 political territories
Georgia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?a ) WHERE { ?f property:diplomatic_relation ?p . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?a = 10 ) }
[]