Simple Question (Direct)
Simple Question
Q733722
P161
Q502895
USER
Who starred in Love and Other Drugs ?
(Q733722,P161,c(Q502895))
action filter_type
action find
entity Q733722
relation P161
type Q502895
['Q733722', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q733722 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Love and Other Drugs
action filter_type
action find
entity Love and Other Drugs
relation cast member
type common name
['Love and Other Drugs', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Love_and_Other_Drugs property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
common name
Q202056 Q36301 Q230665
SYSTEM
Hank Azaria, Anne Hathaway, Jill Clayburgh
Q202056 Q133313 Q236189 Q230665 Q449900 Q438641 Q465471 Q253343 Q1190319 Q268298 Q725650 Q343510 Q320651 Q36301
(Q733722,P161,c(Q502895))
action filter_type
action find
entity Q733722
relation P161
type Q502895
[ANSWERS] starred in Love and Other Drugs
['Q733722', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q733722 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Hank Azaria Jake Gyllenhaal Judy Greer Jill Clayburgh George Segal Ian Harding Nikki DeLoach Jaimie Alexander Josh Gad Katheryn Winnick Scott Cohen Oliver Platt Gabriel Macht Anne Hathaway
Hank Azaria, Anne Hathaway and Jill Clayburgh starred in Love and Other Drugs
Hank Azaria Anne Hathaway Jill Clayburgh
action filter_type
action find
entity Love and Other Drugs
relation cast member
type common name
['Love and Other Drugs', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Love_and_Other_Drugs property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q202056 Q36301 Q230665
P106
Q12737077
USER
Which occupations have those people as his/her 's career ?
(Q202056,P106,c(Q12737077)) (Q36301,P106,c(Q12737077)) (Q230665,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q202056', 'P106', {'concept': 'Q12737077'}] ['Q36301', 'P106', {'concept': 'Q12737077'}] ['Q230665', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . ?l property:P106 ?h . VALUES ( ?l ) { ( resource:Q202056 ) ( resource:Q133313 ) ( resource:Q236189 ) } }
Hank Azaria Anne Hathaway Jill Clayburgh
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Hank Azaria', 'occupation', {'concept': 'occupation'}] ['Anne Hathaway', 'occupation', {'concept': 'occupation'}] ['Jill Clayburgh', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . ?l property:occupation ?h . VALUES ( ?l ) { ( resource:Hank_Azaria ) ( resource:Jake_Gyllenhaal ) ( resource:Judy_Greer ) } }
[]
occupation
Q10798782 Q10798782 Q10798782
SYSTEM
television actor
Q10798782 Q11481802 Q33999 Q2259451 Q2259451 Q33999 Q10798782 Q177220 Q10798782 Q33999 Q948329 Q2259451
(Q202056,P106,c(Q12737077)) (Q36301,P106,c(Q12737077)) (Q230665,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWER], [ANSWER] and [ANSWER] have those people as his/her 's career
['Q202056', 'P106', {'concept': 'Q12737077'}] ['Q36301', 'P106', {'concept': 'Q12737077'}] ['Q230665', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . ?l property:P106 ?h . VALUES ( ?l ) { ( resource:Q202056 ) ( resource:Q133313 ) ( resource:Q236189 ) } }
television actor dub actor actor stage actor stage actor actor television actor singer television actor actor character actor stage actor
Television actor, television actor and television actor have those people as his/her 's career
television actor television actor television actor
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Hank Azaria', 'occupation', {'concept': 'occupation'}] ['Anne Hathaway', 'occupation', {'concept': 'occupation'}] ['Jill Clayburgh', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . ?l property:occupation ?h . VALUES ( ?l ) { ( resource:Hank_Azaria ) ( resource:Jake_Gyllenhaal ) ( resource:Judy_Greer ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36301
P26
Q502895
USER
Which person has Anne Hathaway as spouse ?
(c(Q502895),P26,Q36301)
action filter_type
action find
entity Q36301
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q36301']
SELECT DISTINCT ?r WHERE { resource:Q36301 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Anne Hathaway
action filter_type
action find
entity Anne Hathaway
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anne Hathaway']
SELECT DISTINCT ?r WHERE { resource:Anne_Hathaway property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q669973
SYSTEM
Adam Shulman
Q669973
(c(Q502895),P26,Q36301)
action filter_type
action find
entity Q36301
relation P26
type Q502895
[ANSWER] has Anne Hathaway as spouse
[{'concept': 'Q502895'}, 'P26', 'Q36301']
SELECT DISTINCT ?r WHERE { resource:Q36301 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Adam Shulman
Adam Shulman has Anne Hathaway as spouse
Adam Shulman
action filter_type
action find
entity Anne Hathaway
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anne Hathaway']
SELECT DISTINCT ?r WHERE { resource:Anne_Hathaway property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q669973
P21
Q290
USER
Which sex does that person possess ?
(Q669973,P21,c(Q290))
action filter_type
action find
entity Q669973
relation P21
type Q290
['Q669973', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q669973 property:P21 ?h . ?h rdf:type ontology:Q290 }
Adam Shulman
action filter_type
action find
entity Adam Shulman
relation gender
type sex
['Adam Shulman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Adam_Shulman property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q669973,P21,c(Q290))
action filter_type
action find
entity Q669973
relation P21
type Q290
That person possesses a [ANSWER]
['Q669973', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q669973 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Adam Shulman
relation gender
type sex
['Adam Shulman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Adam_Shulman property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q202056
P1411
Q618779
USER
Which award was Hank Azaria nominated for ?
(Q202056,P1411,c(Q618779))
action filter_type
action find
entity Q202056
relation P1411
type Q618779
['Q202056', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?v WHERE { resource:Q202056 property:P1411 ?v . ?v rdf:type ontology:Q618779 }
Hank Azaria
action filter_type
action find
entity Hank Azaria
relation nominated for
type award
['Hank Azaria', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?v WHERE { resource:Hank_Azaria property:nominated_for ?v . ?v rdf:type ontology:award }
[]
award
Q1723064
SYSTEM
Tony Award for Best Actor in a Musical
Q1723064
(Q202056,P1411,c(Q618779))
action filter_type
action find
entity Q202056
relation P1411
type Q618779
Hank Azaria was nominated for [ANSWER]
['Q202056', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?v WHERE { resource:Q202056 property:P1411 ?v . ?v rdf:type ontology:Q618779 }
Tony Award for Best Actor in a Musical
Hank Azaria was nominated for Tony Award for Best Actor in a Musical
Tony Award for Best Actor in a Musical
action filter_type
action find
entity Hank Azaria
relation nominated for
type award
['Hank Azaria', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?v WHERE { resource:Hank_Azaria property:nominated_for ?v . ?v rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1723064 Q1350489
P1411
Q502895
USER
Did Jack Cassidy receive nomination for that award ?
(Q1350489,P1411,Q1723064)
action is_in
entity Q1723064
action find
entity Q1350489
relation P1411
['Q1350489', 'P1411', 'Q1723064']
ASK WHERE { resource:Q1350489 property:P1411 resource:Q1723064 }
Tony Award for Best Actor in a Musical Jack Cassidy
action is_in
entity Tony Award for Best Actor in a Musical
action find
entity Jack Cassidy
relation nominated for
['Jack Cassidy', 'nominated for', 'Tony Award for Best Actor in a Musical']
ASK WHERE { resource:Jack_Cassidy property:nominated_for resource:Tony_Award_for_Best_Actor_in_a_Musical }
[]
common name
SYSTEM
YES
(Q1350489,P1411,Q1723064)
action is_in
entity Q1723064
action find
entity Q1350489
relation P1411
[ANSWER]
['Q1350489', 'P1411', 'Q1723064']
ASK WHERE { resource:Q1350489 property:P1411 resource:Q1723064 }
Yes
action is_in
entity Tony Award for Best Actor in a Musical
action find
entity Jack Cassidy
relation nominated for
['Jack Cassidy', 'nominated for', 'Tony Award for Best Actor in a Musical']
ASK WHERE { resource:Jack_Cassidy property:nominated_for resource:Tony_Award_for_Best_Actor_in_a_Musical }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q15617994 Q12737077
USER
How many people are the patron saint of atmost 19 administrative territories and occupations ?
(c(Q15617994)|c(Q12737077),P417,c(Q502895))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 19
[[{'concept': 'Q15617994'}, {'concept': 'Q12737077'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?w WHERE { { ?b property:P417 ?w . ?w rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P417 ?w . ?w rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?w } . FILTER ( ?g <= 19 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 19
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?w WHERE { { ?b property:patron_saint ?w . ?w rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:patron_saint ?w . ?w rdf:type ontology:common_name . ?b rdf:type ontology:occupation } } GROUP BY ?w } . FILTER ( ?g <= 19 ) }
[]
common name designation for an administrative territorial entity occupation
SYSTEM
316
Q2366998 Q453698 Q561838 Q380092 Q129674 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 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q192816 Q58559 Q179718 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(Q15617994)|c(Q12737077),P417,c(Q502895))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 19
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q12737077'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?w WHERE { { ?b property:P417 ?w . ?w rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P417 ?w . ?w rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?w } . FILTER ( ?g <= 19 ) }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola 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 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 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 Leo IX Catherine of Alexandria 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
316
action count
action atmost
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 19
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?w WHERE { { ?b property:patron_saint ?w . ?w rdf:type ontology:common_name . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:patron_saint ?w . ?w rdf:type ontology:common_name . ?b rdf:type ontology:occupation } } GROUP BY ?w } . FILTER ( ?g <= 19 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q340169 Q838948
USER
How many occupations are expressed in atmost 4 medias or works of art ?
(c(Q340169)|c(Q838948),P180,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 4
[[{'concept': 'Q340169'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q838948 ) } . ?d rdf:type ?a } GROUP BY ?m } . FILTER ( ?q <= 4 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 4
[[{'concept': 'media'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?m WHERE { VALUES ( ?a ) { ( ontology:media ) ( ontology:work_of_art ) } . ?d rdf:type ?a } GROUP BY ?m } . FILTER ( ?q <= 4 ) }
[]
occupation media work of art
SYSTEM
221
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q340169)|c(Q838948),P180,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 4
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q838948 ) } . ?d rdf:type ?a } GROUP BY ?m } . FILTER ( ?q <= 4 ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher officer fisherman baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
221
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 4
[[{'concept': 'media'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?m WHERE { VALUES ( ?a ) { ( ontology:media ) ( ontology:work_of_art ) } . ?d rdf:type ?a } GROUP BY ?m } . FILTER ( ?q <= 4 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1723064
P17
Q15617994
USER
Which administrative territory is Tony Award for Best Actor in a Musical situated in ?
(Q1723064,P17,c(Q15617994))
action filter_type
action find
entity Q1723064
relation P17
type Q15617994
['Q1723064', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1723064 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Tony Award for Best Actor in a Musical
action filter_type
action find
entity Tony Award for Best Actor in a Musical
relation country
type designation for an administrative territorial entity
['Tony Award for Best Actor in a Musical', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Tony_Award_for_Best_Actor_in_a_Musical property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1723064,P17,c(Q15617994))
action filter_type
action find
entity Q1723064
relation P17
type Q15617994
[ANSWER] is Tony Award for Best Actor in a Musical situated in
['Q1723064', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1723064 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
United States of America
United States of America is Tony Award for Best Actor in a Musical situated in
United States of America
action filter_type
action find
entity Tony Award for Best Actor in a Musical
relation country
type designation for an administrative territorial entity
['Tony Award for Best Actor in a Musical', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Tony_Award_for_Best_Actor_in_a_Musical property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]