Simple Question (Direct)
Simple Question
Q2300624
P641
Q349
USER
Which sport did Jan van Drecht participate in ?
(Q2300624,P641,c(Q349))
action filter_type
action find
entity Q2300624
relation P641
type Q349
['Q2300624', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q2300624 property:P641 ?k . ?k rdf:type ontology:Q349 }
Jan van Drecht
action filter_type
action find
entity Jan van Drecht
relation sport
type sport
['Jan van Drecht', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Jan_van_Drecht property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2300624,P641,c(Q349))
action filter_type
action find
entity Q2300624
relation P641
type Q349
Jan Drecht vanned in [ANSWER]
['Q2300624', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q2300624 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
Jan Drecht vanned in association football
association football
action filter_type
action find
entity Jan van Drecht
relation sport
type sport
['Jan van Drecht', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Jan_van_Drecht property:sport ?k . ?k rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2300624
P106
Q12737077
USER
What is the job of that person ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q2300624
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2300624 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Jan van Drecht
action filter_type
action find
entity Jan van Drecht
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Jan_van_Drecht property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q2300624
relation P106
type Q12737077
The job of that person is an [ANSWER]
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2300624 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
association football player
The job of that person is an association football player
association football player
action filter_type
action find
entity Jan van Drecht
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Jan_van_Drecht property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2300624
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q2300624
relation P19
type Q56061
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q2300624 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Jan van Drecht
action filter_type
action find
entity Jan van Drecht
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Jan_van_Drecht property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727
SYSTEM
Amsterdam
Q727
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q2300624
relation P19
type Q56061
That person was born in [ANSWER]
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q2300624 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Amsterdam
That person was born in Amsterdam
Amsterdam
action filter_type
action find
entity Jan van Drecht
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Jan_van_Drecht property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have adopted atleast 1 people or holidays as patron saint ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action atleast
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?t WHERE { { ?t property:P417 ?d . ?t rdf:type ontology:Q56061 . ?d rdf:type ontology:Q502895 } UNION { ?t property:P417 ?d . ?t rdf:type ontology:Q56061 . ?d rdf:type ontology:Q1445650 } } GROUP BY ?t } }
action count
action atleast
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?t WHERE { { ?t property:patron_saint ?d . ?t rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:common_name } UNION { ?t property:patron_saint ?d . ?t rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:holiday } } GROUP BY ?t } }
[]
common name holiday administrative territorial entity
SYSTEM
97
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q220 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action atleast
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?t WHERE { { ?t property:P417 ?d . ?t rdf:type ontology:Q56061 . ?d rdf:type ontology:Q502895 } UNION { ?t property:P417 ?d . ?t rdf:type ontology:Q56061 . ?d rdf:type ontology:Q1445650 } } GROUP BY ?t } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Brolo Kastritsa Platres Altrei Molista Mölten Rome Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
97
action count
action atleast
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?t WHERE { { ?t property:patron_saint ?d . ?t rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:common_name } UNION { ?t property:patron_saint ?d . ?t rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:holiday } } GROUP BY ?t } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q727 Q19719
P551
Q502895
USER
How many people dwell at Amsterdam or Tay ?
(c(Q502895),P551,Q727) (c(Q502895),P551,Q19719)
action count
action union
action filter_type
action find_reverse
entity Q727
relation P551
type Q502895
action filter_type
action find_reverse
entity Q19719
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q727'] [{'concept': 'Q502895'}, 'P551', 'Q19719']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:P551 resource:Q727 . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q502895 . ?u property:P551 resource:Q19719 } }
Amsterdam Tay
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation residence
type common name
action filter_type
action find_reverse
entity Tay
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Amsterdam'] [{'concept': 'common name'}, 'residence', 'Tay']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:residence resource:Amsterdam . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:common_name . ?u property:residence resource:Tay } }
[]
common name
SYSTEM
77
Q18001787 Q649344 Q19626752 Q15734181 Q1639368 Q2345950 Q2711877 Q15222012 Q15858260 Q401107 Q2004957 Q2293760 Q19671784 Q2544781 Q459504 Q357900 Q20310566 Q26710743 Q4952144 Q1967000 Q1964408 Q2576955 Q18221706 Q1109324 Q26833712 Q1104084 Q17419315 Q20734927 Q1936019 Q15879217 Q6499694 Q19587908 Q15235910 Q2320629 Q4583 Q827998 Q20267983 Q15734209 Q2302050 Q15943526 Q34660 Q17415648 Q7942002 Q2458115 Q19587808 Q92621 Q20734836 Q20113700 Q288771 Q6276068 Q1003541 Q15430949 Q2469556 Q323883 Q15876816 Q20857337 Q1871263 Q433561 Q15235321 Q15873078 Q5110017 Q4934385 Q20113669 Q3200733 Q533573 Q15877015 Q1886686 Q7155101 Q4983796 Q16859664 Q21130436 Q15971582 Q429445 Q2038578 Q1104100 Q3112766 Q7356925
(c(Q502895),P551,Q727) (c(Q502895),P551,Q19719)
action count
action union
action filter_type
action find_reverse
entity Q727
relation P551
type Q502895
action filter_type
action find_reverse
entity Q19719
relation P551
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q727'] [{'concept': 'Q502895'}, 'P551', 'Q19719']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:P551 resource:Q727 . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q502895 . ?u property:P551 resource:Q19719 } }
Dick Tuinder Jos van der Lans Isik Tuzuner Catharina Julia Roeters van Lennep Huub Oosterhuis Frits Hoogesteger Annemarieke van Rumpt Fabrice Hünd Maria Vos Ahmed Aboutaleb Carry Pothuis-Smit Ann Demeester Tony Andreas Walter Hochmuth Guusje ter Horst Hendrik S. Houthakker Maria Kouznetsova Hendrik Roeters Boy Westerhof Wiert Berghuis Nan Hoover Jacob van Loo Michiel Dijkema Norbert van Bloemen Daniël van der Ree Co Hoedeman Alman Metten Willem Stevens Abraham Salm Maup Mendels Laureano Vallenilla Lanz Sophie Schut Alex van Heusden Frank de Grave Anne Frank Ger van Elk David Pinto Saar de Swart Richard Klinkhamer Marie de Jonge J. K. Rowling Cornelis W. van der Hoogt Voskan Yerevantsi Elias Trip Martijn den Ouden Andrew S. Tanenbaum Dick Kuiper Anneke Wezel Hans van Mierlo Joop Kasteel Frank Wiafe Danquah Christina Houbraken Marten Bierman Igor Sijsling Jacoba Surie Herman Jan Rahusen Henk Oosterhuis Marietje Schaake Peter-Paul de Baar Betsy Westendorp-Osieck Willem Hovy Bob Wielinga Meta Meijer Conrad Theodor van Deventer Machteld Mellink Jo Bauer-Stumpff Thomas Schoorel Pauline Wong Marit Törnqvist Immanuel Benveniste Patricia Spoelder Hedwig Cecile Albertine van Osselen Désirée Bonis Theo Fransman Ko Rentmeester Isaac Vossius Rodney Glunder
77
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation residence
type common name
action filter_type
action find_reverse
entity Tay
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Amsterdam'] [{'concept': 'common name'}, 'residence', 'Tay']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:residence resource:Amsterdam . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:common_name . ?u property:residence resource:Tay } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q727
P740
Q2088357
USER
Which musical ensembles were formed at Amsterdam ?
(c(Q2088357),P740,Q727)
action filter_type
action find_reverse
entity Q727
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q727']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2088357 . ?t property:P740 resource:Q727 }
Amsterdam
action filter_type
action find_reverse
entity Amsterdam
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Amsterdam']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:musical_ensemble . ?t property:location_of_formation resource:Amsterdam }
[]
musical ensemble
Q15613707 Q679327 Q26213102
SYSTEM
Yellow Claw, De Toppers, Haevn
Q5251059 Q5352028 Q7297115 Q679327 Q3637336 Q19883496 Q26213102 Q7735407 Q789631 Q478576 Q2343281 Q2000980 Q2693863 Q839149 Q1967561 Q2142713 Q17111093 Q5772938 Q1970870 Q5437294 Q1392924 Q15613707 Q2649712
(c(Q2088357),P740,Q727)
action filter_type
action find_reverse
entity Q727
relation P740
type Q2088357
[ANSWERS] were formed at Amsterdam
[{'concept': 'Q2088357'}, 'P740', 'Q727']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2088357 . ?t property:P740 resource:Q727 }
Def P & Beatbusters El Rio Trio Ray & Anita De Toppers Beaver Het Nieuwe Lied Haevn The Fudge Aux Raus Amsterdam Loeki Stardust Quartet Claw Boys Claw Bauer Moke Disavowed Bettie Serveert The Ex TenTemPiés Hissanol Alamo Race Track Fatal Flowers De Dijk Yellow Claw Acda en De Munnik
Yellow Claw, De Toppers and Haevn were formed at Amsterdam
Yellow Claw De Toppers Haevn
action filter_type
action find_reverse
entity Amsterdam
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Amsterdam']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:musical_ensemble . ?t property:location_of_formation resource:Amsterdam }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q679327
P1344
Q15275719
USER
Which recurring event did De Toppers participate in ?
(Q679327,P1344,c(Q15275719))
action filter_type
action find
entity Q679327
relation P1344
type Q15275719
['Q679327', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?v WHERE { resource:Q679327 property:P1344 ?v . ?v rdf:type ontology:Q15275719 }
De Toppers
action filter_type
action find
entity De Toppers
relation participant of
type recurring event
['De Toppers', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?v WHERE { resource:De_Toppers property:participant_of ?v . ?v rdf:type ontology:recurring_event }
[]
recurring event
Q10157
SYSTEM
Eurovision Song Contest 2009
Q10157
(Q679327,P1344,c(Q15275719))
action filter_type
action find
entity Q679327
relation P1344
type Q15275719
De Toppers participated in [ANSWER]
['Q679327', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?v WHERE { resource:Q679327 property:P1344 ?v . ?v rdf:type ontology:Q15275719 }
Eurovision Song Contest 2009
De Toppers participated in Eurovision Song Contest 2009
Eurovision Song Contest 2009
action filter_type
action find
entity De Toppers
relation participant of
type recurring event
['De Toppers', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?v WHERE { resource:De_Toppers property:participant_of ?v . ?v rdf:type ontology:recurring_event }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10157 Q5543084
P1344
Q502895
USER
Did George Oxenden participate in that recurring event ?
(Q5543084,P1344,Q10157)
action is_in
entity Q5543084
action find
entity Q10157
relation P1344
['Q5543084', 'P1344', 'Q10157']
ASK WHERE { resource:Q10157 property:P1344 resource:Q5543084 }
Eurovision Song Contest 2009 George Oxenden
action is_in
entity George Oxenden
action find
entity Eurovision Song Contest 2009
relation participant of
['George Oxenden', 'participant of', 'Eurovision Song Contest 2009']
ASK WHERE { resource:Eurovision_Song_Contest_2009 property:participant_of resource:George_Oxenden }
[]
common name
SYSTEM
NO
(Q5543084,P1344,Q10157)
action is_in
entity Q5543084
action find
entity Q10157
relation P1344
[ANSWER]
['Q5543084', 'P1344', 'Q10157']
ASK WHERE { resource:Q10157 property:P1344 resource:Q5543084 }
No
action is_in
entity George Oxenden
action find
entity Eurovision Song Contest 2009
relation participant of
['George Oxenden', 'participant of', 'Eurovision Song Contest 2009']
ASK WHERE { resource:Eurovision_Song_Contest_2009 property:participant_of resource:George_Oxenden }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q26213102 Q55 Q39914
P495
Q15617994
USER
Did Haevn originate in Netherlands and Chiuro ?
(Q26213102,P495,Q55) (Q26213102,P495,Q39914)
action is_in
entity Q26213102
action intersection
action find_reverse
entity Q55
relation P495
action find_reverse
entity Q39914
relation P495
['Q26213102', 'P495', 'Q55'] ['Q26213102', 'P495', 'Q39914']
ASK WHERE { resource:Q26213102 property:P495 resource:Q55 . resource:Q26213102 property:P495 resource:Q39914 }
Haevn Netherlands Chiuro
action is_in
entity Haevn
action intersection
action find_reverse
entity Netherlands
relation country of origin
action find_reverse
entity Chiuro
relation country of origin
['Haevn', 'country of origin', 'Netherlands'] ['Haevn', 'country of origin', 'Chiuro']
ASK WHERE { resource:Haevn property:country_of_origin resource:Netherlands . resource:Haevn property:country_of_origin resource:Chiuro }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q26213102,P495,Q55) (Q26213102,P495,Q39914)
action is_in
entity Q26213102
action intersection
action find_reverse
entity Q55
relation P495
action find_reverse
entity Q39914
relation P495
[ANSWER]
['Q26213102', 'P495', 'Q55'] ['Q26213102', 'P495', 'Q39914']
ASK WHERE { resource:Q26213102 property:P495 resource:Q55 . resource:Q26213102 property:P495 resource:Q39914 }
YES and NO respectively
action is_in
entity Haevn
action intersection
action find_reverse
entity Netherlands
relation country of origin
action find_reverse
entity Chiuro
relation country of origin
['Haevn', 'country of origin', 'Netherlands'] ['Haevn', 'country of origin', 'Chiuro']
ASK WHERE { resource:Haevn property:country_of_origin resource:Netherlands . resource:Haevn property:country_of_origin resource:Chiuro }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q70677 Q39914
P47
Q15617994
USER
Which administrative territories are next to the border of Chiuro or Bregaglia ?
OR((c(Q15617994),P47,Q39914), (c(Q15617994),P47,Q70677))
action filter_type
action union
action find_reverse
entity Q39914
relation P47
action find_reverse
entity Q70677
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q39914'], [{'concept': 'Q15617994'}, 'P47', 'Q70677']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P47 resource:Q39914 } UNION { ?g property:P47 resource:Q70677 } } . ?g rdf:type ontology:Q15617994 }
Bregaglia Chiuro
action filter_type
action union
action find_reverse
entity Chiuro
relation shares border with
action find_reverse
entity Bregaglia
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Chiuro'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bregaglia']]}
SELECT DISTINCT ?g WHERE { { { ?g property:shares_border_with resource:Chiuro } UNION { ?g property:shares_border_with resource:Bregaglia } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q40902 Q39150 Q39056 Q39498 Q40183 Q39548 Q39794 Q39321 Q40280 Q39324
SYSTEM
Val Masino, Castello dell'Acqua, Montagna in Valtellina, Villa di Chiavenna, Novate Mezzola, Piuro, Teglio, Ponte in Valtellina, Chiesa in Valmalenco, Lanzada
Q40902 Q39150 Q39056 Q39498 Q40183 Q39548 Q39794 Q39321 Q40280 Q39324
OR((c(Q15617994),P47,Q39914), (c(Q15617994),P47,Q70677))
action filter_type
action union
action find_reverse
entity Q39914
relation P47
action find_reverse
entity Q70677
relation P47
type Q15617994
[ANSWERS] are next to the border of Chiuro or Bregaglia
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q39914'], [{'concept': 'Q15617994'}, 'P47', 'Q70677']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P47 resource:Q39914 } UNION { ?g property:P47 resource:Q70677 } } . ?g rdf:type ontology:Q15617994 }
Val Masino Castello dell'Acqua Montagna in Valtellina Villa di Chiavenna Novate Mezzola Piuro Teglio Ponte in Valtellina Chiesa in Valmalenco Lanzada
Val Masino, Castello dell'Acqua, Montagna in Valtellina, Villa di Chiavenna, Novate Mezzola, Piuro, Teglio, Ponte in Valtellina, Chiesa in Valmalenco and Lanzada are next to the border of Chiuro or Bregaglia
Val Masino Castello dell'Acqua Montagna in Valtellina Villa di Chiavenna Novate Mezzola Piuro Teglio Ponte in Valtellina Chiesa in Valmalenco Lanzada
action filter_type
action union
action find_reverse
entity Chiuro
relation shares border with
action find_reverse
entity Bregaglia
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Chiuro'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bregaglia']]}
SELECT DISTINCT ?g WHERE { { { ?g property:shares_border_with resource:Chiuro } UNION { ?g property:shares_border_with resource:Bregaglia } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q39794
P47
Q15617994
USER
How many administrative territories share border with Teglio ?
(c(Q15617994),P47,Q39794)
action count
action filter_type
action find_reverse
entity Q39794
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q39794']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ontology:Q15617994 . ?k property:P47 resource:Q39794 }
Teglio
action count
action filter_type
action find_reverse
entity Teglio
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Teglio']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:shares_border_with resource:Teglio }
[]
designation for an administrative territorial entity
SYSTEM
11
Q41040 Q101780 Q39321 Q39914 Q101699 Q39150 Q39835 Q101566 Q104096 Q39720 Q111345
(c(Q15617994),P47,Q39794)
action count
action filter_type
action find_reverse
entity Q39794
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q39794']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ontology:Q15617994 . ?k property:P47 resource:Q39794 }
Aprica Vilminore di Scalve Ponte in Valtellina Chiuro Valbondione Castello dell'Acqua Bianzone Schilpario Corteno Golgi Villa di Tirano Paisco Loveno
11
action count
action filter_type
action find_reverse
entity Teglio
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Teglio']
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:shares_border_with resource:Teglio }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q39794
P20
Q502895
USER
Which people have that administrative territory as the area of death ?
action filter_type
action find_reverse
entity Q39794
relation P20
type Q502895
SELECT DISTINCT ?x WHERE { ?x property:P20 resource:Q39794 . ?x rdf:type ontology:Q502895 }
Teglio
action filter_type
action find_reverse
entity Teglio
relation place of death
type common name
SELECT DISTINCT ?x WHERE { ?x property:place_of_death resource:Teglio . ?x rdf:type ontology:common_name }
[]
common name
Q3856766 Q3929121
SYSTEM
Michele Rajna, Raffaele Menici
Q3856766 Q3929121
action filter_type
action find_reverse
entity Q39794
relation P20
type Q502895
[ANSWERS] have that administrative territory as the area of death
SELECT DISTINCT ?x WHERE { ?x property:P20 resource:Q39794 . ?x rdf:type ontology:Q502895 }
Michele Rajna Raffaele Menici
Michele Rajna and Raffaele Menici have that administrative territory as the area of death
Michele Rajna Raffaele Menici
action filter_type
action find_reverse
entity Teglio
relation place of death
type common name
SELECT DISTINCT ?x WHERE { ?x property:place_of_death resource:Teglio . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3856766 Q3929121
P20
Q15617994
USER
Where did those people die ?
(Q3856766,P20,c(Q15617994)) (Q3929121,P20,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P20
type Q15617994
['Q3856766', 'P20', {'concept': 'Q15617994'}] ['Q3929121', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . ?l property:P20 ?a . VALUES ( ?l ) { ( resource:Q3856766 ) ( resource:Q3929121 ) } }
Michele Rajna Raffaele Menici
action filter_type
action find
entity prev_answer
relation place of death
type designation for an administrative territorial entity
['Michele Rajna', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Raffaele Menici', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:place_of_death ?a . VALUES ( ?l ) { ( resource:Michele_Rajna ) ( resource:Raffaele_Menici ) } }
[]
designation for an administrative territorial entity
Q39794 Q39794
SYSTEM
Teglio
Q39794 Q39794
(Q3856766,P20,c(Q15617994)) (Q3929121,P20,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P20
type Q15617994
Those people died in [ANSWER] and [ANSWER]
['Q3856766', 'P20', {'concept': 'Q15617994'}] ['Q3929121', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . ?l property:P20 ?a . VALUES ( ?l ) { ( resource:Q3856766 ) ( resource:Q3929121 ) } }
Teglio Teglio
Those people died in Teglio and Teglio
Teglio Teglio
action filter_type
action find
entity prev_answer
relation place of death
type designation for an administrative territorial entity
['Michele Rajna', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Raffaele Menici', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:place_of_death ?a . VALUES ( ?l ) { ( resource:Michele_Rajna ) ( resource:Raffaele_Menici ) } }
[]