Simple Question (Direct)
Simple Question
Q5524172
P641
Q349
USER
Which sport did Garry Lewis participate in ?
(Q5524172,P641,c(Q349))
action filter_type
action find
entity Q5524172
relation P641
type Q349
['Q5524172', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q5524172 property:P641 ?h . ?h rdf:type ontology:Q349 }
Garry Lewis
action filter_type
action find
entity Garry Lewis
relation sport
type sport
['Garry Lewis', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Garry_Lewis property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5524172,P641,c(Q349))
action filter_type
action find
entity Q5524172
relation P641
type Q349
Garry Lewis participated in [ANSWER]
['Q5524172', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q5524172 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
Garry Lewis participated in association football
association football
action filter_type
action find
entity Garry Lewis
relation sport
type sport
['Garry Lewis', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Garry_Lewis property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1496967 . resource:Q2736 property:P495 ?s }
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 ?s WHERE { ?s rdf:type ontology:territorial_entity . resource:association_football property:country_of_origin ?s }
[]
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 that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1496967 . resource:Q2736 property:P495 ?s }
England
England is the origin of that sport
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 ?s WHERE { ?s rdf:type ontology:territorial_entity . resource:association_football property:country_of_origin ?s }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q21 Q40807
P85
Q7725634
USER
Is God Save the Queen the anthem for that territory ?
(Q21,P85,Q40807)
action is_in
entity Q40807
action find
entity Q21
relation P85
['Q21', 'P85', 'Q40807']
ASK WHERE { resource:Q21 property:P85 resource:Q40807 }
England God Save the Queen
action is_in
entity God Save the Queen
action find
entity England
relation anthem
['England', 'anthem', 'God Save the Queen']
ASK WHERE { resource:England property:anthem resource:God_Save_the_Queen }
[]
literary work
SYSTEM
YES
(Q21,P85,Q40807)
action is_in
entity Q40807
action find
entity Q21
relation P85
[ANSWER]
['Q21', 'P85', 'Q40807']
ASK WHERE { resource:Q21 property:P85 resource:Q40807 }
Yes
action is_in
entity God Save the Queen
action find
entity England
relation anthem
['England', 'anthem', 'God Save the Queen']
ASK WHERE { resource:England property:anthem resource:God_Save_the_Queen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5524172 Q30
P27
Q15617994
USER
Does Garry Lewis belong to United States of America ?
(Q5524172,P27,Q30)
action is_in
entity Q30
action find
entity Q5524172
relation P27
['Q5524172', 'P27', 'Q30']
ASK WHERE { resource:Q5524172 property:P27 resource:Q30 }
Garry Lewis United States of America
action is_in
entity United States of America
action find
entity Garry Lewis
relation country of citizenship
['Garry Lewis', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Garry_Lewis property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5524172,P27,Q30)
action is_in
entity Q30
action find
entity Q5524172
relation P27
[ANSWER]
['Q5524172', 'P27', 'Q30']
ASK WHERE { resource:Q5524172 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Garry Lewis
relation country of citizenship
['Garry Lewis', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Garry_Lewis property:country_of_citizenship resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5524172
P54
Q618123
USER
What sports team is Garry Lewis a member of ?
(Q5524172,P54,c(Q618123))
action filter_type
action find
entity Q5524172
relation P54
type Q618123
['Q5524172', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?t WHERE { resource:Q5524172 property:P54 ?t . ?t rdf:type ontology:Q618123 }
Garry Lewis
action filter_type
action find
entity Garry Lewis
relation member of sports team
type geographical object
['Garry Lewis', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?t WHERE { resource:Garry_Lewis property:member_of_sports_team ?t . ?t rdf:type ontology:geographical_object }
[]
geographical object
Q5350396
SYSTEM
Ekenäs IF
Q5350396
(Q5524172,P54,c(Q618123))
action filter_type
action find
entity Q5524172
relation P54
type Q618123
Team [ANSWER] is Garry Lewis a member of
['Q5524172', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?t WHERE { resource:Q5524172 property:P54 ?t . ?t rdf:type ontology:Q618123 }
Ekenäs IF
Team Ekenäs IF is Garry Lewis a member of
Ekenäs IF
action filter_type
action find
entity Garry Lewis
relation member of sports team
type geographical object
['Garry Lewis', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?t WHERE { resource:Garry_Lewis property:member_of_sports_team ?t . ?t rdf:type ontology:geographical_object }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P37
Q34770
USER
What is considered to be the official language of England ?
(Q21,P37,c(Q34770))
action filter_type
action find
entity Q21
relation P37
type Q34770
['Q21', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q21 property:P37 ?p . ?p rdf:type ontology:Q34770 }
England
action filter_type
action find
entity England
relation official language
type language
['England', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:England property:official_language ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q21,P37,c(Q34770))
action filter_type
action find
entity Q21
relation P37
type Q34770
In [ANSWER] is considered to be the official language of England
['Q21', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q21 property:P37 ?p . ?p rdf:type ontology:Q34770 }
English
In English is considered to be the official language of England
English
action filter_type
action find
entity England
relation official language
type language
['England', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:England property:official_language ?p . ?p rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5524172
P106
Q12737077
USER
Which occupation is the profession of Garry Lewis ?
(Q5524172,P106,c(Q12737077))
action filter_type
action find
entity Q5524172
relation P106
type Q12737077
['Q5524172', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5524172 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Garry Lewis
action filter_type
action find
entity Garry Lewis
relation occupation
type occupation
['Garry Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Garry_Lewis property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5524172,P106,c(Q12737077))
action filter_type
action find
entity Q5524172
relation P106
type Q12737077
Player [ANSWER] is the profession of Garry Lewis
['Q5524172', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5524172 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Garry Lewis
association football player
action filter_type
action find
entity Garry Lewis
relation occupation
type occupation
['Garry Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Garry_Lewis property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q937857 Q2736
P425
Q349
USER
Is association football associated with the field of occupation that one ?
(Q937857,P425,Q2736)
action is_in
entity Q2736
action find
entity Q937857
relation P425
['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q2736 }
association football player association football
action is_in
entity association football
action find
entity association football player
relation field of this occupation
['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
sport
SYSTEM
YES
(Q937857,P425,Q2736)
action is_in
entity Q2736
action find
entity Q937857
relation P425
[ANSWER]
['Q937857', 'P425', 'Q2736']
ASK WHERE { resource:Q937857 property:P425 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity association football player
relation field of this occupation
['association football player', 'field of this occupation', 'association football']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:association_football }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5350396 Q7684479 Q133201
P641
Q349
USER
Is Ekenäs IF involved in playing Tapawai and squash ?
(Q5350396,P641,Q7684479) (Q5350396,P641,Q133201)
action is_in
entity Q5350396
action intersection
action find_reverse
entity Q7684479
relation P641
action find_reverse
entity Q133201
relation P641
['Q5350396', 'P641', 'Q7684479'] ['Q5350396', 'P641', 'Q133201']
ASK WHERE { resource:Q5350396 property:P641 resource:Q7684479 . resource:Q5350396 property:P641 resource:Q133201 }
Ekenäs IF Tapawai squash
action is_in
entity Ekenäs IF
action intersection
action find_reverse
entity Tapawai
relation sport
action find_reverse
entity squash
relation sport
['Ekenäs IF', 'sport', 'Tapawai'] ['Ekenäs IF', 'sport', 'squash']
ASK WHERE { resource:Ekenäs_IF property:sport resource:Tapawai . resource:Ekenäs_IF property:sport resource:squash }
[]
sport
SYSTEM
NO
(Q5350396,P641,Q7684479) (Q5350396,P641,Q133201)
action is_in
entity Q5350396
action intersection
action find_reverse
entity Q7684479
relation P641
action find_reverse
entity Q133201
relation P641
[ANSWER]
['Q5350396', 'P641', 'Q7684479'] ['Q5350396', 'P641', 'Q133201']
ASK WHERE { resource:Q5350396 property:P641 resource:Q7684479 . resource:Q5350396 property:P641 resource:Q133201 }
No
action is_in
entity Ekenäs IF
action intersection
action find_reverse
entity Tapawai
relation sport
action find_reverse
entity squash
relation sport
['Ekenäs IF', 'sport', 'Tapawai'] ['Ekenäs IF', 'sport', 'squash']
ASK WHERE { resource:Ekenäs_IF property:sport resource:Tapawai . resource:Ekenäs_IF property:sport resource:squash }
[]
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 the patron saint of atmost 5 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P417 ?f . ?f rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12737077 } GROUP BY ?f } . FILTER ( ?a <= 5 ) }
action count
action atmost
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 ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:patron_saint ?f . ?f rdf:type ontology:common_name . ?m rdf:type ontology:occupation } GROUP BY ?f } . FILTER ( ?a <= 5 ) }
[]
common name occupation
SYSTEM
319
Q2366998 Q453698 Q561838 Q380092 Q129674 Q133704 Q229190 Q43945 Q3922154 Q152457 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q43689 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q328804 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q166876 Q163900 Q31966 Q170547 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q212850 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q374822 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q9438 Q1502088 Q8413 Q558148 Q160373 Q130997 Q515953 Q1274242 Q312758 Q443392 Q5575577 Q379685 Q191479 Q42887 Q3745904 Q191107 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q242274 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q128538 Q37599 Q316599 Q232975 Q183240 Q122376 Q119289 Q145746 Q15284282 Q360798 Q298845 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q48438 Q159834 Q119512 Q44281 Q63070 Q134666 Q170164 Q43399 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q196653 Q560531 Q4161703 Q508214 Q9200 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q193507 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q463600 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q192816 Q43982 Q58559 Q445357 Q40662 Q359878 Q190240 Q332656 Q210096 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q160374 Q442516 Q920226 Q80513 Q43600 Q283447 Q26486 Q324700 Q158504 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q151967 Q312314 Q149727 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q232427 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q60059 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q17590 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q200895 Q523662 Q284323 Q59071 Q1383532 Q160445 Q44248 Q1269112 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action count
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 5
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P417 ?f . ?f rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12737077 } GROUP BY ?f } . FILTER ( ?a <= 5 ) }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Catherine of Siena Jude the Apostle Prisco di Nocera Saint Roch 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 Ambrose Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus John the Evangelist Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Isidore of Seville Saint Francis Xavier Mark the Evangelist Anthony the Great 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 Vitus 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 Adrian of Nicomedia Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Thomas Aquinas Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Damasus I Maximilian of Lorch Romanus of Caesarea Jean-Baptiste de La Salle Saint Bibiana Gobnait Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Clare of Assisi 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 Dorothea of Caesarea Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Luke the Evangelist Theodore of Amasea Saint Maurice Anastasia of Sirmium Saint Lucy Callixtus I Leonard of Port Maurice Joseph Adolphus Saint Eligius Saint Florian Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Saint George Hubertus William of Maleval Ignatius of Loyola Mary Magdalene Stephen I Helena of Constantinople Andrew 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 Saint Veronica Suitbert of Kaiserswerdt Dimitry Prilutsky Cyriacus Paul Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Christopher Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Saint Petronilla 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 Thomas the Apostle 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 Benedict of Nursia Martha Saint Barbara Bartholomew the Apostle Leo IX Henry John the Baptist Erasmus of Formiae Cyprian Camillus de Lellis Agnes of Rome Gaudentius of Novara John of God Emilianus of Trevi Ephysius Castrese di Sessa Alexius of Rome Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Saint Cecilia Matthew the Apostle Lambert of Maastricht Ladislaus I of Hungary Urban of Langres Clement of Ohrid Zita Edward the Confessor Barbatus of Benevento John the Apostle Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Saint Blaise Bruno of Cologne Saint Giles Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Apollonia Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Albertus Magnus Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Lawrence of Rome Sigismund of Burgundy Joseph of Arimathea Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Agatha of Sicily Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Jerome Saint Ninian Anthony of Apamea Elizabeth Ann Seton Charalampus Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
319
action count
action atmost
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 ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:patron_saint ?f . ?f rdf:type ontology:common_name . ?m rdf:type ontology:occupation } GROUP BY ?f } . FILTER ( ?a <= 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P407
Q34770 Q82799 Q1002697
USER
Which languages are the languages of work for max number of names or periodical literatures ?
(c(Q82799)|c(Q1002697),P407,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
[[{'concept': 'Q82799'}, {'concept': 'Q1002697'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q1002697 ) ( ontology:Q82799 ) } . ?k rdf:type ?a } GROUP BY ?v } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { { ?e property:P407 ?t . ?t rdf:type ontology:Q34770 . ?e rdf:type ontology:Q82799 } UNION { ?t rdf:type ontology:Q34770 . ?e rdf:type ontology:Q1002697 . ?e property:P407 ?t } } GROUP BY ?t } . FILTER ( ?f = ?x ) }
action argmax
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
[[{'concept': 'name'}, {'concept': 'periodical literature'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:periodical_literature ) ( ontology:name ) } . ?k rdf:type ?a } GROUP BY ?v } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { { ?e property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?e rdf:type ontology:name } UNION { ?t rdf:type ontology:language . ?e rdf:type ontology:periodical_literature . ?e property:language_of_work_or_name ?t } } GROUP BY ?t } . FILTER ( ?f = ?x ) }
[]
language name periodical literature
Q1860
SYSTEM
English
Q1860
(c(Q82799)|c(Q1002697),P407,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
[ANSWER] is the languages of work for max number of names or periodical literatures
[[{'concept': 'Q82799'}, {'concept': 'Q1002697'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q1002697 ) ( ontology:Q82799 ) } . ?k rdf:type ?a } GROUP BY ?v } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { { ?e property:P407 ?t . ?t rdf:type ontology:Q34770 . ?e rdf:type ontology:Q82799 } UNION { ?t rdf:type ontology:Q34770 . ?e rdf:type ontology:Q1002697 . ?e property:P407 ?t } } GROUP BY ?t } . FILTER ( ?f = ?x ) }
English
English is the languages of work for max number of names or periodical literatures
English
action argmax
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
[[{'concept': 'name'}, {'concept': 'periodical literature'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:periodical_literature ) ( ontology:name ) } . ?k rdf:type ?a } GROUP BY ?v } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { { ?e property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?e rdf:type ontology:name } UNION { ?t rdf:type ontology:language . ?e rdf:type ontology:periodical_literature . ?e property:language_of_work_or_name ?t } } GROUP BY ?t } . FILTER ( ?f = ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P180
Q3305213
USER
Which painting demonstrates that territory ?
(c(Q3305213),P180,Q1860)
action filter_type
action find_reverse
entity Q21
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q1860']
SELECT DISTINCT ?q WHERE { ?q property:P180 resource:Q21 . ?q rdf:type ontology:Q3305213 }
England
action filter_type
action find_reverse
entity England
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'English']
SELECT DISTINCT ?q WHERE { ?q property:depicts resource:England . ?q rdf:type ontology:painting }
[]
painting
Q19928682
SYSTEM
The union of England and Scotland
Q19928682
(c(Q3305213),P180,Q1860)
action filter_type
action find_reverse
entity Q21
relation P180
type Q3305213
[ANSWER] demonstrates that territory
[{'concept': 'Q3305213'}, 'P180', 'Q1860']
SELECT DISTINCT ?q WHERE { ?q property:P180 resource:Q21 . ?q rdf:type ontology:Q3305213 }
The union of England and Scotland
The union of England and Scotland demonstrates that territory
The union of England and Scotland
action filter_type
action find_reverse
entity England
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'English']
SELECT DISTINCT ?q WHERE { ?q property:depicts resource:England . ?q rdf:type ontology:painting }
[]