Simple Question (Direct)
Simple Question
Q7282448
P21
Q290
USER
Which sex does Rafał Lasocki possess ?
(Q7282448,P21,c(Q290))
action filter_type
action find
entity Q7282448
relation P21
type Q290
['Q7282448', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q7282448 property:P21 ?x . ?x rdf:type ontology:Q290 }
Rafał Lasocki
action filter_type
action find
entity Rafał Lasocki
relation gender
type sex
['Rafał Lasocki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Rafał_Lasocki property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7282448,P21,c(Q290))
action filter_type
action find
entity Q7282448
relation P21
type Q290
Rafał Lasocki possesses du [ANSWER]
['Q7282448', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q7282448 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Rafał Lasocki possesses du male
male
action filter_type
action find
entity Rafał Lasocki
relation gender
type sex
['Rafał Lasocki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Rafał_Lasocki property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people as that sex as their class ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?a WHERE { ?a property:P136 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?a WHERE { ?a property:genre resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?a WHERE { ?a property:P136 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?a WHERE { ?a property:genre resource:male . ?a rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q313288
P800
Q16970
USER
What were notable works done by that person ?
(Q313288,P800,c(Q16970))
action filter_type
action find
entity Q313288
relation P800
type Q16970
['Q313288', 'P800', {'concept': 'Q16970'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16970 . resource:Q313288 property:P800 ?f }
Augustus Pugin
action filter_type
action find
entity Augustus Pugin
relation notable work
type church
['Augustus Pugin', 'notable work', {'concept': 'church'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:church . resource:Augustus_Pugin property:notable_work ?f }
[]
church
Clarification for simple ques.
Q23766532
SYSTEM
Did you mean Pierre Laviron ?
Q313288 Q18221191 Q23766532
(Q313288,P800,c(Q16970)) (Q18221191,P800,c(Q16970)) (Q23766532,P800,c(Q16970))
[ANSWER]
['Q313288', 'P800', {'concept': 'Q16970'}] ['Q18221191', 'P800', {'concept': 'Q16970'}] ['Q23766532', 'P800', {'concept': 'Q16970'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16970 . resource:Q313288 property:P800 ?f }
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
Did you mean Pierre Laviron ?
Pierre Laviron
['Augustus Pugin', 'notable work', {'concept': 'church'}] ['Alessandro Gregorio Capponi', 'notable work', {'concept': 'church'}] ['Pierre Laviron', 'notable work', {'concept': 'church'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:church . resource:Augustus_Pugin property:notable_work ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant Augustus Pugin. Could you tell me the answer for that?
(Q313288,P800,c(Q16970))
Q313288
['Q313288', 'P800', {'concept': 'Q16970'}]
['Augustus Pugin', 'notable work', {'concept': 'church'}]
[]
Q1638891 Q1138066 Q1545350
SYSTEM
St Mary's Cathedral, Newcastle upon Tyne, St. Aidan's Cathedral, Nottingham Cathedral
Q1638891 Q1138066 Q1451262 Q1545350
(Q313288,P800,c(Q16970))
action filter_type
action find
entity Q313288
relation P800
type Q16970
Notable works done by that person were at [ANSWERS]
['Q313288', 'P800', {'concept': 'Q16970'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16970 . resource:Q313288 property:P800 ?f }
St Mary's Cathedral, Newcastle upon Tyne St. Aidan's Cathedral St George's Cathedral, Southwark Nottingham Cathedral
Notable works done by that person were at St Mary's Cathedral, Newcastle upon Tyne, St. Aidan's Cathedral and Nottingham Cathedral
St Mary's Cathedral, Newcastle upon Tyne St. Aidan's Cathedral Nottingham Cathedral
action filter_type
action find
entity Augustus Pugin
relation notable work
type church
['Augustus Pugin', 'notable work', {'concept': 'church'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:church . resource:Augustus_Pugin property:notable_work ?f }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P84
Q4830453 Q16970
USER
Which churches were approximately the same number of business enterprises the designer of as that church ?
(c(Q16970),P84,c(Q4830453))
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ?z WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ?z WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
business enterprise church
Comparative|More/Less|Single entity type|Clarification
Q1638891
SYSTEM
Did you mean St Mary's Cathedral, Newcastle upon Tyne ?
(c(Q16970),P84,c(Q4830453))
[ANSWER]
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ?z WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
Did you mean St Mary's Cathedral, Newcastle upon Tyne ?
St Mary's Cathedral, Newcastle upon Tyne
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ?z WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
Comparative Reasoning (All)
USER
No, I meant St. Aidan's Cathedral. Could you tell me the answer for that?
(c(Q16970),P84,c(Q4830453))
Q1138066
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
[]
Q526650 Q1421317 Q128058
SYSTEM
Clifton Cathedral, Sheffield Cathedral, Cathedral Basilica of Saint Louis
Q16987016 Q4729408 Q1421317 Q128058 Q2942264 Q5052256 Q526650
(c(Q16970),P84,c(Q4830453))
[ANSWERS] were approximately the same number of business enterprises the designer of as that church
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ?z WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
St. Nicholas Cathedral All Saints Cathedral, Chicago Sheffield Cathedral Cathedral Basilica of Saint Louis Motherwell Cathedral Cathedral Parish of Saint Patrick Clifton Cathedral
Clifton Cathedral, Sheffield Cathedral and Cathedral Basilica of Saint Louis were approximately the same number of business enterprises the designer of as that church
Clifton Cathedral Sheffield Cathedral Cathedral Basilica of Saint Louis
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ?z WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P84
Q4830453 Q16970
USER
How many churches were designed by more number of business enterprises than that church ?
(c(Q16970),P84,c(Q4830453))
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
business enterprise church
Comparative|Count over More/Less|Single entity type|Clarification
Q1421317
SYSTEM
Did you mean Sheffield Cathedral ?
(c(Q16970),P84,c(Q4830453))
[ANSWER]
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
Did you mean Sheffield Cathedral ?
Sheffield Cathedral
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Clifton Cathedral. Could you tell me the answer for that?
(c(Q16970),P84,c(Q4830453))
Q526650
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
[]
SYSTEM
7
Q16987016 Q4729408 Q1421317 Q128058 Q2942264 Q5052256 Q526650
(c(Q16970),P84,c(Q4830453))
[ANSWER]
[{'concept': 'Q16970'}, 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q42973 ?y . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q4830453 }
St. Nicholas Cathedral All Saints Cathedral, Chicago Sheffield Cathedral Cathedral Basilica of Saint Louis Motherwell Cathedral Cathedral Parish of Saint Patrick Clifton Cathedral
7
[{'concept': 'church'}, 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:architect ?y . ?z rdf:type ontology:church . ?y rdf:type ontology:business_enterprise }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q16970
USER
Which churches have adopted atleast 1 people and holidays as patron saint ?
(c(Q16970),P417,c(Q502895)|c(Q1445650))
action atleast
action union
action find_tuple_counts
relation P417
type Q16970
type Q502895
action find_tuple_counts
relation P417
type Q16970
type Q1445650
value 1
[{'concept': 'Q16970'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?o WHERE { { ?o property:P417 ?e . ?o rdf:type ontology:Q16970 . ?e rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q16970 . ?e rdf:type ontology:Q1445650 . ?o property:P417 ?e } } GROUP BY ?o } . FILTER ( ?s >= 1 ) }
action atleast
action union
action find_tuple_counts
relation patron saint
type church
type common name
action find_tuple_counts
relation patron saint
type church
type holiday
value 1
[{'concept': 'church'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?o WHERE { { ?o property:patron_saint ?e . ?o rdf:type ontology:church . ?e rdf:type ontology:common_name } UNION { ?o rdf:type ontology:church . ?e rdf:type ontology:holiday . ?o property:patron_saint ?e } } GROUP BY ?o } . FILTER ( ?s >= 1 ) }
[]
common name holiday church
Q2942772 Q1423005 Q1086358
SYSTEM
Cathedral of Saint-Jérôme, Nantes Cathedral, St. Rumbold's Cathedral
Q2942927 Q18288367 Q569428 Q22720 Q17592509 Q17592467 Q1160413 Q2617274 Q810123 Q18011474 Q1086358 Q12354023 Q18028087 Q20478672 Q1296233 Q19309758 Q1514860 Q17592514 Q20478415 Q2064095 Q17592510 Q641447 Q1249452 Q2088363 Q20479842 Q568214 Q770458 Q638519 Q279402 Q723968 Q3670118 Q402221 Q12354030 Q668710 Q18202203 Q18028099 Q1686988 Q312220 Q1736160 Q693869 Q12350456 Q715099 Q747856 Q1450280 Q1177463 Q1259104 Q17496222 Q21189410 Q31204 Q2225340 Q184407 Q1124051 Q20478883 Q1048587 Q1493222 Q3790872 Q20478966 Q3668341 Q17278606 Q19364191 Q1421317 Q43282 Q2994043 Q1329512 Q18202199 Q18287950 Q17662962 Q464437 Q20479643 Q26907430 Q2322737 Q739366 Q207985 Q20478555 Q1758749 Q852606 Q2561189 Q17662892 Q12354089 Q338665 Q1296368 Q2942510 Q14943786 Q476529 Q2655072 Q26935191 Q408847 Q17614328 Q94744 Q20478524 Q666960 Q17561181 Q261423 Q1415669 Q18028045 Q18028044 Q21525871 Q1062101 Q586471 Q2443243 Q11737349 Q987211 Q1107406 Q1603677 Q937290 Q1107408 Q20479897 Q12354066 Q2091893 Q736587 Q2411716 Q764251 Q2942772 Q20478584 Q1423005 Q20067763 Q654904 Q84090 Q18333522 Q20480580 Q20479807 Q1774485 Q22691575 Q24705751 Q20479888 Q18130877 Q17614265 Q16736846 Q12354072 Q1236564 Q603289 Q2668017 Q23365744 Q1635337 Q1236697 Q489014 Q906753 Q18515916 Q5938 Q1037844 Q18286751 Q3395146 Q526650 Q20436021 Q1296408 Q20479978 Q1636756 Q20480060 Q5949 Q12354009 Q12354008 Q2737833 Q5943 Q12354006 Q2268666 Q17278642 Q5429578 Q19984103 Q167017 Q18028079 Q573881 Q20439328 Q17278662 Q910211 Q19799294 Q1499188 Q12786853 Q2942303 Q17606582 Q1076146 Q17592485 Q17592482 Q2319644 Q12354014 Q18155878 Q17592489 Q20480107 Q634112 Q1736144 Q45033 Q12345556 Q12097186
(c(Q16970),P417,c(Q502895)|c(Q1445650))
action atleast
action union
action find_tuple_counts
relation P417
type Q16970
type Q502895
action find_tuple_counts
relation P417
type Q16970
type Q1445650
value 1
[ANSWERS] have adopted atleast 1 people and holidays as patron saint
[{'concept': 'Q16970'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?o WHERE { { ?o property:P417 ?e . ?o rdf:type ontology:Q16970 . ?e rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q16970 . ?e rdf:type ontology:Q1445650 . ?o property:P417 ?e } } GROUP BY ?o } . FILTER ( ?s >= 1 ) }
Saint Stefan Cathedral St. Martin St. Elisabeth Cathedral Speyer Cathedral St. Martin St. Antonius Abbey church of St James (Lébény) Maribor Cathedral Basilica of Saints Peter and Paul Klein St. Arnold (Arnoldsweiler) St. Rumbold's Cathedral Roman Catholic Church in Kőszegdoroszló St. Peter und Paul Saint Lawrence church in Pásztó Saint Anne Church St. Martin (Trier) Romanian Patriarchal Cathedral St. Nikolaus Saint John the Baptist church in Szár Archcathedral Basilica of St. Peter and St. Paul St. Martin St. George's Cathedral, Addis Ababa Maguelone Cathedral St. Stephen's Cathedral, Litoměřice Saint Joseph Church, Békásmegyer-Ófalu Alexander Nevsky Cathedral, Tallinn Alexander Nevsky Cathedral Wawel Cathedral Brunswick Cathedral Pécs Cathedral Church of St. Francis Xavier in Garbatella Đakovo Cathedral Saint Martin Church in Ólmod Washington National Cathedral St. Mauritius St. Vitus Kaunas Cathedral Basilica Zagreb Cathedral St. Francis Xavier Cathedral Augustinian Church Saint Roch Church Abbey church of St George (Ják) Llandaff Cathedral St. Catherine's Cathedral, Alexandria Mindszent Church Peterborough Cathedral Saint John the Baptist church in Balatonederics Saint Francis of Assisi Church, Szendrő St. Henry's Cathedral St Clement's Church, Moscow Saint Denis Basilica Cathedral of St. Bartholomew Saint Stephen of Hungary church in Újpest-Kertváros St. John the Baptist Cathedral Alexander Nevsky Cathedral, Paris Cathedral of Saint Nicholas Our Lady Church, Tapolca Santi Pietro e Paolo Roman Catholic Church in Bük Our Lady Church, Pilisvörösvár Sheffield Cathedral Alexander Nevsky Cathedral Church of St. Johns St. Peter and St. Paul Cathedral, Saratov St. Nikolaus St. Margareta St. Agatha (Mersch) Alexander Nevsky Memorial Church Saint Elizabeth of Hungary Church, Alsó-Víziváros St Ninian's Cathedral St. Peter and St. Paul's Cathedral, Tallinn Cathedral of Saint Lawrence Bourges Cathedral Saint Anne church in Kapuvár Church of St. Clement of Ohrid Saint Paul Church (Bač) Agde Cathedral St. Martinus (Kirchberg) Saints Peter and Paul Church, Dunaszentpál St. Stephen's Basilica Saint Ignatius of Loyola Church, Esztergom-Víziváros St Teresa of Avila Cathedral St. Josef Winchester Cathedral Saints Peter and Paul Cathedral Saint Joseph Cathedral Karlskirche St. Martinus (Stetternich) Albi Cathedral Saint Lawrence Church in Szentlőrinc Mainz Cathedral St. Martin Klagenfurt Cathedral Vác Cathedral St. Gereon St. Gereon collégiale Saint-Georges de Vendôme St. George's Cathedral Meaux Cathedral Troyes Cathedral Cathedral of Martin of Tours, Mukacheve Dömötör Tower Castle church in Szentendre Alexander Nevsky Cathedral, Yalta St. Anne's Church, Vilnius Saint John the Baptist Church, Felsőszölnök Saint Ladislaus Church in Aszófő Saint Nicholas Church in Csepreg Alexander Nevsky Cathedral Peter and Paul Cathedral Rio de Janeiro Cathedral Church of Annunciation, Alsószölnök Cathedral of Saint-Jérôme Saint Francis of Assisi church in Vértesboglár Nantes Cathedral Saint Martin church St. James's Cathedral, Riga Archbasilica of St. John Lateran St. Dionysius Saint Lawrence Church, Nagylózs Saint Anthony of Padua Church in Nemesgulács St. George's Cathedral, Lviv Saint Anne Church, Rátka Saint Martin (and Nicholas of Flüe) Church, Vizafogó Saint Ladislaus Church, Aszaló Pfarrkirche St. Martin (Aldenhoven) St. Stephanus (Selgersdorf) Saints Peter and Paul Church (Filzmoos) Saint Roch Church (Szigetvár) Ljubljana Cathedral Alexander Nevsky Cathedral, Novosibirsk St. Alexander Nevsky Church Church of the Annunciation in Marcali Saint Peter and Paul Cathedral Strängnäs Cathedral Sens Cathedral Saint Stephen of Hungary Church, Diósgyőr-Vasgyár St. Martin's Parish Church Naumburg Cathedral Saint Martin Church (Hollókő) St. Ursula Cathedral of St. John the Baptist Clifton Cathedral St.Stephen King of Hungary Church Chicago Saint Stephen Church in Makó Saint Nicholas Church, Kerkaszentmiklós, Tornyiszentmiklós Chesme Church Saint Stephen of Hungary Church (Fajsz) St. Vitus Cathedral Saint Emeric Cistercian Church in Budapest 11 Saint Emeric Church in Hajós Toulouse Cathedral St. Stephen's Cathedral Saint Emeric Church in Badacsonytomaj Saint Wenceslas Cathedral All Saints Church in Kőszegszerdahely Novo Mesto Cathedral Saint Martin Church (Balatonudvari) Alexander Nevsky Cathedral, Belgrade St. Nikolaus Basilica of San Lorenzo Saint Emeric Church, Tóváros, Tata Saint Giles Church in Peresznye Wrocław Cathedral Saint Stephen of Hungary Church, Passaic, New Jersey Catania Cathedral St. Bartholomew's Parish Church Cathedral of Saint Anthony of Padua Saint Pancratius Church (Bettenhoven) Cathedral of St Nicholas, České Budějovice St. Jakobus St. Gereon St. Josef – St. Lukas Saint Ignatius of Loyola Church and jesuit monastery in Vörösberény (Balatonalmádi) Saint John the Baptist Church (Siersdorf) St. Johann Baptist Our Lady church in Nagytétény Church of Saint Lazarus, Larnaca Šiauliai Cathedral Cathedral of St. Peter and Paul Our Lady Basilica, Máriabesnyő Saint Anne Rotuna, Horiany
Cathedral of Saint-Jérôme, Nantes Cathedral and St. Rumbold's Cathedral have adopted atleast 1 people and holidays as patron saint
Cathedral of Saint-Jérôme Nantes Cathedral St. Rumbold's Cathedral
action atleast
action union
action find_tuple_counts
relation patron saint
type church
type common name
action find_tuple_counts
relation patron saint
type church
type holiday
value 1
[{'concept': 'church'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?o WHERE { { ?o property:patron_saint ?e . ?o rdf:type ontology:church . ?e rdf:type ontology:common_name } UNION { ?o rdf:type ontology:church . ?e rdf:type ontology:holiday . ?o property:patron_saint ?e } } GROUP BY ?o } . FILTER ( ?s >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2942772 Q1423005 Q1086358
P417
Q502895
USER
What people are the patron saint of Cathedral of Saint-Jérôme, Nantes Cathedral and St. Rumbold's Cathedral ?
(Q2942772,P417,c(Q502895)) (Q1423005,P417,c(Q502895)) (Q1086358,P417,c(Q502895))
action union
action filter_type
action find
entity Q2942772
relation P417
type Q502895
action filter_type
action find
entity Q1423005
relation P417
type Q502895
action filter_type
action find
entity Q1086358
relation P417
type Q502895
['Q2942772', 'P417', {'concept': 'Q502895'}] ['Q1423005', 'P417', {'concept': 'Q502895'}] ['Q1086358', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?z property:P417 ?m . VALUES ( ?z ) { ( resource:Q2942772 ) ( resource:Q1423005 ) } }
Cathedral of Saint-Jérôme Nantes Cathedral St. Rumbold's Cathedral
action union
action filter_type
action find
entity Cathedral of Saint-Jérôme
relation patron saint
type common name
action filter_type
action find
entity Nantes Cathedral
relation patron saint
type common name
action filter_type
action find
entity St. Rumbold's Cathedral
relation patron saint
type common name
['Cathedral of Saint-Jérôme', 'patron saint', {'concept': 'common name'}] ['Nantes Cathedral', 'patron saint', {'concept': 'common name'}] ["St. Rumbold's Cathedral", 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?z property:patron_saint ?m . VALUES ( ?z ) { ( resource:Cathedral_of_Saint-Jérôme ) ( resource:Nantes_Cathedral ) } }
[]
common name
Q9200 Q33923 Q44248
SYSTEM
Paul, Peter, Jerome
Q44248 Q9200 Q33923 Q965463
(Q2942772,P417,c(Q502895)) (Q1423005,P417,c(Q502895)) (Q1086358,P417,c(Q502895))
action union
action filter_type
action find
entity Q2942772
relation P417
type Q502895
action filter_type
action find
entity Q1423005
relation P417
type Q502895
action filter_type
action find
entity Q1086358
relation P417
type Q502895
[ANSWERS] are the patron saint of Cathedral of Saint-Jérôme, Nantes Cathedral and St. Rumbold's Cathedral
['Q2942772', 'P417', {'concept': 'Q502895'}] ['Q1423005', 'P417', {'concept': 'Q502895'}] ['Q1086358', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?z property:P417 ?m . VALUES ( ?z ) { ( resource:Q2942772 ) ( resource:Q1423005 ) } }
Jerome Paul Peter Rumbold of Mechelen
Paul, Peter and Jerome are the patron saint of Cathedral of Saint-Jérôme, Nantes Cathedral and St. Rumbold's Cathedral
Paul Peter Jerome
action union
action filter_type
action find
entity Cathedral of Saint-Jérôme
relation patron saint
type common name
action filter_type
action find
entity Nantes Cathedral
relation patron saint
type common name
action filter_type
action find
entity St. Rumbold's Cathedral
relation patron saint
type common name
['Cathedral of Saint-Jérôme', 'patron saint', {'concept': 'common name'}] ['Nantes Cathedral', 'patron saint', {'concept': 'common name'}] ["St. Rumbold's Cathedral", 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?z property:patron_saint ?m . VALUES ( ?z ) { ( resource:Cathedral_of_Saint-Jérôme ) ( resource:Nantes_Cathedral ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q9200 Q33923 Q44248
P21
Q290
USER
Which sexes do those people possess ?
(Q9200,P21,c(Q290)) (Q33923,P21,c(Q290)) (Q44248,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q9200', 'P21', {'concept': 'Q290'}] ['Q33923', 'P21', {'concept': 'Q290'}] ['Q44248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . VALUES ( ?e ) { ( resource:Q44248 ) ( resource:Q9200 ) ( resource:Q33923 ) } . ?e property:P21 ?c }
Paul Peter Jerome
action filter_type
action find
entity prev_answer
relation gender
type sex
['Paul', 'gender', {'concept': 'sex'}] ['Peter', 'gender', {'concept': 'sex'}] ['Jerome', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . VALUES ( ?e ) { ( resource:Jerome ) ( resource:Paul ) ( resource:Peter ) } . ?e property:gender ?c }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q9200,P21,c(Q290)) (Q33923,P21,c(Q290)) (Q44248,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people possess a [ANSWER], [ANSWER] and [ANSWER]
['Q9200', 'P21', {'concept': 'Q290'}] ['Q33923', 'P21', {'concept': 'Q290'}] ['Q44248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . VALUES ( ?e ) { ( resource:Q44248 ) ( resource:Q9200 ) ( resource:Q33923 ) } . ?e property:P21 ?c }
male male male
Those people possess a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Paul', 'gender', {'concept': 'sex'}] ['Peter', 'gender', {'concept': 'sex'}] ['Jerome', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . VALUES ( ?e ) { ( resource:Jerome ) ( resource:Paul ) ( resource:Peter ) } . ?e property:gender ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1423005
P276
Q838948
USER
Which work of art is located at Nantes Cathedral ?
(c(Q838948),P276,Q1423005)
action filter_type
action find_reverse
entity Q1423005
relation P276
type Q838948
[{'concept': 'Q838948'}, 'P276', 'Q1423005']
SELECT DISTINCT ?s WHERE { ?s property:P276 resource:Q1423005 . ?s rdf:type ontology:Q838948 }
Nantes Cathedral
action filter_type
action find_reverse
entity Nantes Cathedral
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Nantes Cathedral']
SELECT DISTINCT ?s WHERE { ?s property:location resource:Nantes_Cathedral . ?s rdf:type ontology:work_of_art }
[]
work of art
Q1026644
SYSTEM
Tomb of Francis II, Duke of Brittany
Q1026644
(c(Q838948),P276,Q1423005)
action filter_type
action find_reverse
entity Q1423005
relation P276
type Q838948
The [ANSWER] is located at Nantes Cathedral
[{'concept': 'Q838948'}, 'P276', 'Q1423005']
SELECT DISTINCT ?s WHERE { ?s property:P276 resource:Q1423005 . ?s rdf:type ontology:Q838948 }
Tomb of Francis II, Duke of Brittany
The Tomb of Francis II, Duke of Brittany is located at Nantes Cathedral
Tomb of Francis II, Duke of Brittany
action filter_type
action find_reverse
entity Nantes Cathedral
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Nantes Cathedral']
SELECT DISTINCT ?s WHERE { ?s property:location resource:Nantes_Cathedral . ?s rdf:type ontology:work_of_art }
[]