Simple Question (Direct)
Simple Question
Q1394924
P39
Q12737077
USER
What were the positions held by John F. Lacey ?
(Q1394924,P39,c(Q12737077))
action filter_type
action find
entity Q1394924
relation P39
type Q12737077
['Q1394924', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1394924 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
John F. Lacey
action filter_type
action find
entity John F. Lacey
relation position held
type occupation
['John F. Lacey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:John_F._Lacey property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q13218630 Q17486706
SYSTEM
United States representative, member of the Iowa House of Representatives
Q13218630 Q17486706
(Q1394924,P39,c(Q12737077))
action filter_type
action find
entity Q1394924
relation P39
type Q12737077
The positions held by John F. Lacey were a [ANSWERS]
['Q1394924', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1394924 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
United States representative member of the Iowa House of Representatives
The positions held by John F. Lacey were a United States representative and member of the Iowa House of Representatives
United States representative member of the Iowa House of Representatives
action filter_type
action find
entity John F. Lacey
relation position held
type occupation
['John F. Lacey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:John_F._Lacey property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1394924
P607
Q198
USER
What battle was that person a part of ?
(Q13218630,P607,c(Q198)) (Q17486706,P607,c(Q198))
action filter_type
action find
entity Q1394924
relation P607
type Q198
['Q13218630', 'P607', {'concept': 'Q198'}] ['Q17486706', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q1394924 property:P607 ?h . ?h rdf:type ontology:Q198 }
John F. Lacey
action filter_type
action find
entity John F. Lacey
relation conflict
type war
['United States representative', 'conflict', {'concept': 'war'}] ['member of the Iowa House of Representatives', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:John_F._Lacey property:conflict ?h . ?h rdf:type ontology:war }
[]
war
Q8676
SYSTEM
American Civil War
Q8676
(Q13218630,P607,c(Q198)) (Q17486706,P607,c(Q198))
action filter_type
action find
entity Q1394924
relation P607
type Q198
What battle was that person a part of
['Q13218630', 'P607', {'concept': 'Q198'}] ['Q17486706', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q1394924 property:P607 ?h . ?h rdf:type ontology:Q198 }
American Civil War
What battle was that person a part of
American Civil War
action filter_type
action find
entity John F. Lacey
relation conflict
type war
['United States representative', 'conflict', {'concept': 'war'}] ['member of the Iowa House of Representatives', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:John_F._Lacey property:conflict ?h . ?h rdf:type ontology:war }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of atmost 4 occupations ?
(c(Q12737077),P417,c(Q502895))
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?z <= 4 ) . { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P417 ?j . ?j rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?j } }
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?z <= 4 ) . { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:patron_saint ?j . ?j rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?j } }
[]
common name occupation
Q9682 Q9438 Q191479
SYSTEM
Elizabeth II, Thomas Aquinas, Tadeusz Kościuszko
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 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 atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[ANSWERS] are the names of the patron saint of atmost 4 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?z <= 4 ) . { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P417 ?j . ?j rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?j } }
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 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
Elizabeth II, Thomas Aquinas and Tadeusz Kościuszko are the names of the patron saint of atmost 4 occupations
Elizabeth II Thomas Aquinas Tadeusz Kościuszko
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?z <= 4 ) . { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:patron_saint ?j . ?j rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18121212
P607
Q198 Q2235308 Q502895
USER
How many wars did more number of ship types and people take part in than American-led intervention in Syria ?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q18121212
relation P607
type Q2235308
type Q502895
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { VALUES ( ?k ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?s rdf:type ?k } . ?s property:P607 resource:Q18121212 } } . FILTER ( ?x > ?a ) }
American-led intervention in Syria
action count
action greater
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity American-led intervention in Syria
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:ship_type ) ( ontology:common_name ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { VALUES ( ?k ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?s rdf:type ?k } . ?s property:conflict resource:American-led_intervention_in_Syria } } . FILTER ( ?x > ?a ) }
[]
war ship type common name
SYSTEM
46
Q8683 Q211855 Q1006311 Q795269 Q3067868 Q3778746 Q920894 Q81545 Q10859 Q362 Q163883 Q361 Q1021160 Q1072889 Q1980081 Q633862 Q209297 Q242352 Q2105495 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q4971401 Q2086498 Q1049945 Q75984 Q1021172 Q1021175 Q1122110 Q43378 Q8676 Q1127302 Q1052332 Q1070890 Q188972 Q12302518 Q475678 Q213394 Q17507684 Q179975 Q2672972 Q243620 Q79911 Q142529
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q18121212
relation P607
type Q2235308
type Q502895
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { VALUES ( ?k ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?s rdf:type ?k } . ?s property:P607 resource:Q18121212 } } . FILTER ( ?x > ?a ) }
Cold War Finnish Civil War war of national liberation Sierra Leone Civil War Colombian Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War World War II Ten-Day War World War I Armagnac–Burgundian Civil War Chilean War of Independence Civil war in Afghanistan Cold War Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War British military intervention in the Sierra Leone Civil War First Barons' War Jacobite rising of 1745 Dirty War Republic of the Congo Civil War First Ivorian Civil War Civil war in Tajikistan Thousand Days' War American Civil War Estonian War of Independence War in Somalia Georgian Civil War Greek Civil War Civil war in Afghanistan Mexican Drug War Sri Lankan Civil War military intervention against ISIL Chinese Civil War Uruguayan Civil War Somali Civil War Russian Civil War Algerian Civil War
46
action count
action greater
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity American-led intervention in Syria
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:ship_type ) ( ontology:common_name ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { VALUES ( ?k ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?s rdf:type ?k } . ?s property:conflict resource:American-led_intervention_in_Syria } } . FILTER ( ?x > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1049945
P607
Q198 Q2235308 Q502895
USER
Which wars did more number of ship types and people take part in than Jacobite rising of 1745 ?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1049945
relation P607
type Q2235308
type Q502895
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { { ?x property:P607 ?c . ?c rdf:type ontology:Q198 . ?x rdf:type ontology:Q2235308 } UNION { ?x property:P607 ?c . ?x rdf:type ontology:Q502895 . ?c rdf:type ontology:Q198 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P607 resource:Q1049945 . { ?f rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } } } . FILTER ( ?w > ?l ) }
Jacobite rising of 1745
action greater
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Jacobite rising of 1745
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { { ?x property:conflict ?c . ?c rdf:type ontology:war . ?x rdf:type ontology:ship_type } UNION { ?x property:conflict ?c . ?x rdf:type ontology:common_name . ?c rdf:type ontology:war } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:conflict resource:Jacobite_rising_of_1745 . { ?f rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } } } . FILTER ( ?w > ?l ) }
[]
war ship type common name
Q545449 Q163883 Q79911
SYSTEM
Iraq War, Ten-Day War, Russian Civil War
Q8683 Q10859 Q362 Q163883 Q361 Q545449 Q8676 Q79911
(c(Q2235308)|c(Q502895),P607,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1049945
relation P607
type Q2235308
type Q502895
[ANSWERS] more number of ship types and people took part in than Jacobite rising of 1745
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { { ?x property:P607 ?c . ?c rdf:type ontology:Q198 . ?x rdf:type ontology:Q2235308 } UNION { ?x property:P607 ?c . ?x rdf:type ontology:Q502895 . ?c rdf:type ontology:Q198 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P607 resource:Q1049945 . { ?f rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } } } . FILTER ( ?w > ?l ) }
Cold War Spanish Civil War World War II Ten-Day War World War I Iraq War American Civil War Russian Civil War
Iraq War, Ten-Day War and Russian Civil War more number of ship types and people took part in than Jacobite rising of 1745
Iraq War Ten-Day War Russian Civil War
action greater
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Jacobite rising of 1745
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?w ) WHERE { { ?x property:conflict ?c . ?c rdf:type ontology:war . ?x rdf:type ontology:ship_type } UNION { ?x property:conflict ?c . ?x rdf:type ontology:common_name . ?c rdf:type ontology:war } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:conflict resource:Jacobite_rising_of_1745 . { ?f rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } } } . FILTER ( ?w > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9682
P35
Q1048835
USER
How many political territories have Elizabeth II as their chief of state ?
(c(Q1048835),P35,Q9682)
action count
action filter_type
action find_reverse
entity Q9682
relation P35
type Q1048835
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P35 resource:Q9682 . ?m rdf:type ontology:Q1048835 }
Elizabeth II
action count
action filter_type
action find_reverse
entity Elizabeth II
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:head_of_state resource:Elizabeth_II . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
15
Q763 Q766 Q778 Q664 Q408 Q691 Q757 Q685 Q18221 Q16 Q769 Q9648 Q9676 Q781 Q785
(c(Q1048835),P35,Q9682)
action count
action filter_type
action find_reverse
entity Q9682
relation P35
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P35 resource:Q9682 . ?m rdf:type ontology:Q1048835 }
Saint Kitts and Nevis Jamaica The Bahamas New Zealand Australia Papua New Guinea Saint Vincent and the Grenadines Solomon Islands Turks and Caicos Islands Canada Grenada Falkland Islands Isle of Man Antigua and Barbuda Jersey
15
action count
action filter_type
action find_reverse
entity Elizabeth II
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:head_of_state resource:Elizabeth_II . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q335323
P35
Q1048835
USER
And how about William Morrison, 1st Viscount Dunrossil?
(c(Q1048835),P35,Q335323)
action count
action filter_type
action find_reverse
entity Q335323
relation P35
type Q1048835
[{'concept': 'Q1048835'}, 'P35', 'Q335323']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P35 resource:Q335323 . ?x rdf:type ontology:Q1048835 }
William Morrison, 1st Viscount Dunrossil
action count
action filter_type
action find_reverse
entity William Morrison, 1st Viscount Dunrossil
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'William Morrison, 1st Viscount Dunrossil']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:head_of_state resource:William_Morrison,_1st_Viscount_Dunrossil . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q408
(c(Q1048835),P35,Q335323)
action count
action filter_type
action find_reverse
entity Q335323
relation P35
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q335323']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P35 resource:Q335323 . ?x rdf:type ontology:Q1048835 }
Australia
1
action count
action filter_type
action find_reverse
entity William Morrison, 1st Viscount Dunrossil
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'William Morrison, 1st Viscount Dunrossil']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:head_of_state resource:William_Morrison,_1st_Viscount_Dunrossil . ?x rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q220971
P1303
Q34379 Q502895
USER
Which musical instruments do less number of people know to play than marimba ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q220971
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P1303 resource:Q220971 . ?h rdf:type ontology:Q502895 } } . FILTER ( ?r < ?u ) }
marimba
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity marimba
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:instrument resource:marimba . ?h rdf:type ontology:common_name } } . FILTER ( ?r < ?u ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q213461 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q320341 Q1300012 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q220971
relation P1303
type Q502895
[ANSWERS] less number of people know to play than marimba
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P1303 resource:Q220971 . ?h rdf:type ontology:Q502895 } } . FILTER ( ?r < ?u ) }
lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa harmonium Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone celesta toy piano cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
Davul, Wurlitzer electric piano and Bendir less number of people know to play than marimba
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity marimba
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:instrument resource:marimba . ?h rdf:type ontology:common_name } } . FILTER ( ?r < ?u ) }
[]