Simple Question (Direct)
Simple Question
Q13423317
P58
Q502895
USER
Who wrote the script for The Land of Smiles ?
(Q13423317,P58,c(Q502895))
action filter_type
action find
entity Q13423317
relation P58
type Q502895
['Q13423317', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q13423317 property:P58 ?y . ?y rdf:type ontology:Q502895 }
The Land of Smiles
action filter_type
action find
entity The Land of Smiles
relation screenwriter
type common name
['The Land of Smiles', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Land_of_Smiles property:screenwriter ?y . ?y rdf:type ontology:common_name }
[]
common name
Q88818
SYSTEM
Axel Eggebrecht
Q88818
(Q13423317,P58,c(Q502895))
action filter_type
action find
entity Q13423317
relation P58
type Q502895
[ANSWER] wrote the script for The Land of Smiles
['Q13423317', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q13423317 property:P58 ?y . ?y rdf:type ontology:Q502895 }
Axel Eggebrecht
Axel Eggebrecht wrote the script for The Land of Smiles
Axel Eggebrecht
action filter_type
action find
entity The Land of Smiles
relation screenwriter
type common name
['The Land of Smiles', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Land_of_Smiles property:screenwriter ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q88818
P937
Q486972
USER
What is the location where that person worked ?
(Q88818,P937,c(Q486972))
action filter_type
action find
entity Q88818
relation P937
type Q486972
['Q88818', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q486972 . resource:Q88818 property:P937 ?y }
Axel Eggebrecht
action filter_type
action find
entity Axel Eggebrecht
relation work location
type human settlement
['Axel Eggebrecht', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:human_settlement . resource:Axel_Eggebrecht property:work_location ?y }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q88818,P937,c(Q486972))
action filter_type
action find
entity Q88818
relation P937
type Q486972
The location that person worked is in [ANSWER]
['Q88818', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q486972 . resource:Q88818 property:P937 ?y }
Hamburg
The location that person worked is in Hamburg
Hamburg
action filter_type
action find
entity Axel Eggebrecht
relation work location
type human settlement
['Axel Eggebrecht', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:human_settlement . resource:Axel_Eggebrecht property:work_location ?y }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q44539 Q16970
USER
Which people are the patron saint of min number of temples and churches ?
(c(Q44539)|c(Q16970),P417,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
[[{'concept': 'Q44539'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { VALUES ( ?r ) { ( ontology:Q44539 ) ( ontology:Q16970 ) } . ?q rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:P417 ?o . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q16970 } UNION { ?e property:P417 ?o . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q44539 } } GROUP BY ?o } . FILTER ( ?d = ?n ) }
action argmin
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type church
[[{'concept': 'temple'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { VALUES ( ?r ) { ( ontology:temple ) ( ontology:church ) } . ?q rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:patron_saint ?o . ?o rdf:type ontology:common_name . ?e rdf:type ontology:church } UNION { ?e property:patron_saint ?o . ?o rdf:type ontology:common_name . ?e rdf:type ontology:temple } } GROUP BY ?o } . FILTER ( ?d = ?n ) }
[]
common name temple church
Q9682 Q9438 Q191479
SYSTEM
Elizabeth II, Thomas Aquinas, Tadeusz Kościuszko
Q2366998 Q561838 Q380092 Q129674 Q229190 Q43945 Q3922154 Q1050218 Q464959 Q1141472 Q2916248 Q516729 Q349086 Q3893243 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q1281133 Q236974 Q3776432 Q101090 Q1284098 Q1249745 Q47144 Q240610 Q166876 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q2360539 Q244383 Q3615108 Q235857 Q287916 Q102131 Q505937 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q132797 Q132100 Q4011186 Q233067 Q3838743 Q374822 Q733308 Q118081 Q358325 Q537686 Q312057 Q357093 Q9438 Q1502088 Q558148 Q160373 Q130997 Q1274242 Q312758 Q443392 Q5575577 Q379685 Q191479 Q3745904 Q191107 Q4210004 Q4282480 Q3859960 Q2697247 Q203437 Q457903 Q315312 Q242274 Q728245 Q384364 Q132113 Q81634 Q43954 Q37599 Q232975 Q122376 Q119289 Q380345 Q288295 Q218921 Q316295 Q4014956 Q119512 Q134666 Q867765 Q914115 Q1289858 Q3906150 Q3876580 Q189776 Q339541 Q160922 Q1115725 Q196653 Q4161703 Q508214 Q1270991 Q235863 Q131159 Q190388 Q3924139 Q193507 Q83198 Q2182480 Q2005417 Q463600 Q2456880 Q185117 Q303640 Q241423 Q447384 Q1747656 Q6732208 Q1393825 Q2824511 Q3887342 Q310686 Q12871 Q9156208 Q336704 Q181489 Q587596 Q372668 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q359878 Q190240 Q332656 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q442516 Q920226 Q324700 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q469978 Q232427 Q2270111 Q129603 Q3561124 Q1110905 Q335127 Q355884 Q42827 Q543320 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q523662 Q284323 Q59071 Q1383532 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385
(c(Q44539)|c(Q16970),P417,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
[ANSWERS] are the patron saint of min number of temples and churches
[[{'concept': 'Q44539'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { VALUES ( ?r ) { ( ontology:Q44539 ) ( ontology:Q16970 ) } . ?q rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:P417 ?o . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q16970 } UNION { ?e property:P417 ?o . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q44539 } } GROUP BY ?o } . FILTER ( ?d = ?n ) }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Catherine of Siena Jude the Apostle Prisco di Nocera Catald Onuphrius Roger of Cannae Alexander of Comana Sebaldus Leopold III, Margrave of Austria Pamphilus of Sulmona Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Tudwal Radegund Gonçalo de Amarante Eleuterus Turibius of Astorga Mamilian of Palermo Linus Euphemia Isidore of Seville Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Donatus of Arezzo Rose of Lima Anatolia martire Elizabeth of Aragon Finbarr of Cork Marcellus I Vincent Pallotti Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Mark Anterus Vicinius of Sarsina Salome Lucido di Aquara Adrian of Nicomedia Medardus Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Thomas Aquinas Genesius of Arles Leonard of Noblac Marcellinus Damasus I Romanus of Caesarea Jean-Baptiste de La Salle Saint Bibiana Gobnait Isidore the Laborer Tadeusz Kościuszko Fiorenzo di Bastia Clare of Assisi Venantius of Camerino Saint Martha Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Januarius Dorothea of Caesarea Marziano di Siracusa Ursus of Aosta Pontian Sixtus I Leo I Theodore of Amasea Anastasia of Sirmium Callixtus I Leonard of Port Maurice Saint Maurus Justina of Padua Saint Eustace Bernardino of Siena Vitaliano da Capua William of Maleval Stephen I Sossius Prosdocimus Saint Bassian Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Celestine I Saint Giovanni Battista de Rossi Saint Veronica Dimitry Prilutsky Cyriacus Eugenius of Carthage Genevieve Fabian John of the Cross Prospero da Centuripe Saint Christopher Pius I Felice Privat de Mende Saint Petronilla Tryphon, Respicius, and Nympha Justin Martyr Marcian of Tortona Juliana of Nicomedia Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adjutor Ottone Frangipane Dionysius the Areopagite Simon the Zealot Anthony Sulpicius Severus Eusebius of Vercelli Magnus of Anagni John the Merciful Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Erasmus of Formiae Cyprian Camillus de Lellis Gaudentius of Novara John of God Emilianus of Trevi Ephysius Castrese di Sessa Alexius of Rome Paschal Baylon Germanus of Auxerre Michael de Sanctis Urban of Langres Zita Edward the Confessor Barbatus of Benevento John the Apostle Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Devota Saint Apollonia Maternus Caesarius of Africa Acisclus Simplicio of Olbia Agabus Josaphat Kuntsevych Gregory I Marina the Monk Sigismund of Burgundy Joseph of Arimathea Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Anthony of Apamea Elizabeth Ann Seton Charalampus Pius V Elizabeth II Sixtus II
Elizabeth II, Thomas Aquinas and Tadeusz Kościuszko are the patron saint of min number of temples and churches
Elizabeth II Thomas Aquinas Tadeusz Kościuszko
action argmin
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type church
[[{'concept': 'temple'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?h WHERE { VALUES ( ?r ) { ( ontology:temple ) ( ontology:church ) } . ?q rdf:type ?r } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:patron_saint ?o . ?o rdf:type ontology:common_name . ?e rdf:type ontology:church } UNION { ?e property:patron_saint ?o . ?o rdf:type ontology:common_name . ?e rdf:type ontology:temple } } GROUP BY ?o } . FILTER ( ?d = ?n ) }
[]