Simple Question (Direct)
Simple Question
Q16971483
P19
Q13220204
USER
Where was Luka Bešenić born ?
(Q16971483,P19,c(Q13220204))
action filter_type
action find
entity Q16971483
relation P19
type Q13220204
['Q16971483', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { resource:Q16971483 property:P19 ?q . ?q rdf:type ontology:Q13220204 }
Luka Bešenić
action filter_type
action find
entity Luka Bešenić
relation place of birth
type second-level administrative country subdivision
['Luka Bešenić', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { resource:Luka_Bešenić property:place_of_birth ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q5420
SYSTEM
Varaždin
Q5420
(Q16971483,P19,c(Q13220204))
action filter_type
action find
entity Q16971483
relation P19
type Q13220204
Luka Bešenić was born in [ANSWER]
['Q16971483', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { resource:Q16971483 property:P19 ?q . ?q rdf:type ontology:Q13220204 }
Varaždin
Luka Bešenić was born in Varaždin
Varaždin
action filter_type
action find
entity Luka Bešenić
relation place of birth
type second-level administrative country subdivision
['Luka Bešenić', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { resource:Luka_Bešenić property:place_of_birth ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5420
P1444
Q31629
USER
Which type of sport has that administrative country subdivision as its destination point ?
(c(Q31629),P1444,Q5420)
action filter_type
action find_reverse
entity Q5420
relation P1444
type Q31629
[{'concept': 'Q31629'}, 'P1444', 'Q5420']
SELECT DISTINCT ?u WHERE { ?u property:P1444 resource:Q5420 . ?u rdf:type ontology:Q31629 }
Varaždin
action filter_type
action find_reverse
entity Varaždin
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Varaždin']
SELECT DISTINCT ?u WHERE { ?u property:destination_point resource:Varaždin . ?u rdf:type ontology:type_of_sport }
[]
type of sport
Q23895112
SYSTEM
2016 Tour of Croatia, Stage 1
Q23895112
(c(Q31629),P1444,Q5420)
action filter_type
action find_reverse
entity Q5420
relation P1444
type Q31629
[ANSWER] has that administrative country subdivision as its destination point
[{'concept': 'Q31629'}, 'P1444', 'Q5420']
SELECT DISTINCT ?u WHERE { ?u property:P1444 resource:Q5420 . ?u rdf:type ontology:Q31629 }
2016 Tour of Croatia, Stage 1
2016 Tour of Croatia, Stage 1 has that administrative country subdivision as its destination point
2016 Tour of Croatia, Stage 1
action filter_type
action find_reverse
entity Varaždin
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Varaždin']
SELECT DISTINCT ?u WHERE { ?u property:destination_point resource:Varaždin . ?u rdf:type ontology:type_of_sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P361
Q1914636 Q18608583 Q31629
USER
Which types of sport are a component of approximately the same number of activities and recurring sporting events as that type of sport ?
(c(Q31629),P361,c(Q1914636)|c(Q18608583))
action approx
action union
action find_tuple_counts
relation P361
type Q31629
type Q1914636
action find_tuple_counts
relation P361
type Q31629
type Q18608583
action count
action filter_multi_types
action find
entity Q23895112
relation P361
type Q1914636
type Q18608583
[{'concept': 'Q31629'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q18608583'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?l ) WHERE { { ?h property:P361 ?i . ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q1914636 } UNION { ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q18608583 . ?h property:P361 ?i } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q23895112 property:P361 ?r . { { ?r rdf:type ontology:Q1914636 } UNION { ?r rdf:type ontology:Q18608583 } } } } . FILTER ( ?l = ?g ) }
action approx
action union
action find_tuple_counts
relation part of
type type of sport
type activity
action find_tuple_counts
relation part of
type type of sport
type recurring sporting event
action count
action filter_multi_types
action find
entity 2016 Tour of Croatia, Stage 1
relation part of
type activity
type recurring sporting event
[{'concept': 'type of sport'}, 'part of', [{'concept': 'activity'}, {'concept': 'recurring sporting event'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?l ) WHERE { { ?h property:part_of ?i . ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:activity } UNION { ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:recurring_sporting_event . ?h property:part_of ?i } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:2016_Tour_of_Croatia,_Stage_1 property:part_of ?r . { { ?r rdf:type ontology:activity } UNION { ?r rdf:type ontology:recurring_sporting_event } } } } . FILTER ( ?l = ?g ) }
[]
activity recurring sporting event type of sport
SYSTEM
31
Q17747909 Q2807503 Q22344380 Q19392891 Q19392890 Q20746188 Q20746189 Q20746184 Q20746185 Q20746186 Q20746187 Q260938 Q21755419 Q21755418 Q21755417 Q21755416 Q22344375 Q19392888 Q19392889 Q265672 Q17747711 Q992060 Q2219503 Q22344367 Q22344357 Q12007223 Q17747832 Q20746190 Q21755420 Q17747942 Q17747499
(c(Q31629),P361,c(Q1914636)|c(Q18608583))
action approx
action union
action find_tuple_counts
relation P361
type Q31629
type Q1914636
action find_tuple_counts
relation P361
type Q31629
type Q18608583
action count
action filter_multi_types
action find
entity Q23895112
relation P361
type Q1914636
type Q18608583
[ANSWER]
[{'concept': 'Q31629'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q18608583'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?l ) WHERE { { ?h property:P361 ?i . ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q1914636 } UNION { ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q18608583 . ?h property:P361 ?i } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q23895112 property:P361 ?r . { { ?r rdf:type ontology:Q1914636 } UNION { ?r rdf:type ontology:Q18608583 } } } } . FILTER ( ?l = ?g ) }
2014 Tour of Norway, Stage 4 1995 Tour de France, Stage 12 2016 Ladies Tour of Qatar, Stage 4 2013 Tour of Norway, Stage 5 2013 Tour of Norway, Stage 4 2015 Tour de Pologne, Stage 5 2015 Tour de Pologne, Stage 6 2015 Tour de Pologne, Stage 1 2015 Tour de Pologne, Stage 2 2015 Tour de Pologne, Stage 3 2015 Tour de Pologne, Stage 4 2012 Tour de France, Prologue 2014 Tour de l'Ain, Stage 3 2014 Tour de l'Ain, Stage 2 2014 Tour de l'Ain, Stage 1 2014 Tour de l'Ain, Prologue 2016 Ladies Tour of Qatar, Stage 3 2013 Tour of Norway, Stage 1 2013 Tour of Norway, Stage 2 2008 Tour de France, Stage 8 2014 Tour of Norway, Stage 2 Fun run 2004 Tour de France, Prologue 2016 Ladies Tour of Qatar, Stage 2 2016 Ladies Tour of Qatar, Stage 1 2013 Tour of Norway, Stage 3 2014 Tour of Norway, Stage 3 2015 Tour de Pologne, Stage 7 2014 Tour de l'Ain, Stage 4 2014 Tour of Norway, Stage 5 2014 Tour of Norway, Stage 1
31
action approx
action union
action find_tuple_counts
relation part of
type type of sport
type activity
action find_tuple_counts
relation part of
type type of sport
type recurring sporting event
action count
action filter_multi_types
action find
entity 2016 Tour of Croatia, Stage 1
relation part of
type activity
type recurring sporting event
[{'concept': 'type of sport'}, 'part of', [{'concept': 'activity'}, {'concept': 'recurring sporting event'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?l ) WHERE { { ?h property:part_of ?i . ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:activity } UNION { ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:recurring_sporting_event . ?h property:part_of ?i } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:2016_Tour_of_Croatia,_Stage_1 property:part_of ?r . { { ?r rdf:type ontology:activity } UNION { ?r rdf:type ontology:recurring_sporting_event } } } } . FILTER ( ?l = ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q550
P1444
Q79007 Q31629
USER
Which streets are the destination points for less number of types of sport than avenue des Champs-Élysées ?
(c(Q31629),P1444,c(Q79007))
action less
action find_reverse_tuple_counts
relation P1444
type Q79007
type Q31629
action count
action filter_type
action find_reverse
entity Q550
relation P1444
type Q31629
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q79007'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:P1444 resource:Q550 . ?j rdf:type ontology:Q31629 } } . FILTER ( ?c < ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1444 ?r . ?r rdf:type ontology:Q79007 . ?l rdf:type ontology:Q31629 } GROUP BY ?r } }
avenue des Champs-Élysées
action less
action find_reverse_tuple_counts
relation destination point
type street
type type of sport
action count
action filter_type
action find_reverse
entity avenue des Champs-Élysées
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', {'concept': 'street'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:destination_point resource:avenue_des_Champs-Élysées . ?j rdf:type ontology:type_of_sport } } . FILTER ( ?c < ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:destination_point ?r . ?r rdf:type ontology:street . ?l rdf:type ontology:type_of_sport } GROUP BY ?r } }
[]
street type of sport
Q533037 Q2921942 Q2921792
SYSTEM
boulevard Saint-Germain, boulevard Sérurier, boulevard Brune
Q2921783 Q2921850 Q2921792 Q2921892 Q2921875 Q2921809 Q2921958 Q533037 Q2921942 Q934198 Q2921782
(c(Q31629),P1444,c(Q79007))
action less
action find_reverse_tuple_counts
relation P1444
type Q79007
type Q31629
action count
action filter_type
action find_reverse
entity Q550
relation P1444
type Q31629
[ANSWERS] are the destination points for less number of types of sport than avenue des Champs-Élysées
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q79007'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:P1444 resource:Q550 . ?j rdf:type ontology:Q31629 } } . FILTER ( ?c < ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1444 ?r . ?r rdf:type ontology:Q79007 . ?l rdf:type ontology:Q31629 } GROUP BY ?r } }
boulevard Bessières boulevard Jourdan boulevard Brune boulevard Ney boulevard Macdonald boulevard Davout boulevard Victor boulevard Saint-Germain boulevard Sérurier boulevard Lefebvre boulevard Berthier
Boulevard Saint-Germain, boulevard Sérurier and boulevard Brune are the destination points for less number of types of sport than avenue des Champs-Élysées
boulevard Saint-Germain boulevard Sérurier boulevard Brune
action less
action find_reverse_tuple_counts
relation destination point
type street
type type of sport
action count
action filter_type
action find_reverse
entity avenue des Champs-Élysées
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', {'concept': 'street'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:destination_point resource:avenue_des_Champs-Élysées . ?j rdf:type ontology:type_of_sport } } . FILTER ( ?c < ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:destination_point ?r . ?r rdf:type ontology:street . ?l rdf:type ontology:type_of_sport } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q790578 Q533037
P47
Q34442
USER
Which roads share border with boulevard Saint-Germain or avenue Kléber ?
OR((c(Q34442),P47,Q533037), (c(Q34442),P47,Q790578))
action filter_type
action union
action find_reverse
entity Q533037
relation P47
action find_reverse
entity Q790578
relation P47
type Q34442
{'OR': [[{'concept': 'Q34442'}, 'P47', 'Q533037'], [{'concept': 'Q34442'}, 'P47', 'Q790578']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34442 . { { ?u property:P47 resource:Q533037 } UNION { ?u property:P47 resource:Q790578 } } }
avenue Kléber boulevard Saint-Germain
action filter_type
action union
action find_reverse
entity boulevard Saint-Germain
relation shares border with
action find_reverse
entity avenue Kléber
relation shares border with
type road
{'OR': [[{'concept': 'road'}, 'shares border with', 'boulevard Saint-Germain'], [{'concept': 'road'}, 'shares border with', 'avenue Kléber']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:road . { { ?u property:shares_border_with resource:boulevard_Saint-Germain } UNION { ?u property:shares_border_with resource:avenue_Kléber } } }
[]
road
Q3452290 Q3449843 Q3450565 Q3449976 Q3451031 Q3450587 Q3448177 Q3450898 Q3450573 Q3450854
SYSTEM
Some of them are rue du Dragon, rue Saint-Benoît, rue de Bellechasse, rue Saint-Thomas-d'Aquin, rue de Saint-Simon, rue de Bièvre, rue Gozlin, rue de Montfaucon, rue de Belloy, rue de Magdebourg
Q1496833 Q3450964 Q3447459 Q3451006 Q3451638 Q3447609 Q3451751 Q3449863 Q3451673 Q3449173 Q3451307 Q3449862 Q3450573 Q3451302 Q3449887 Q3450843 Q3452035 Q3450986 Q3451188 Q3450156 Q3447231 Q3449843 Q3449976 Q3449433 Q3447194 Q587372 Q3450974 Q1470209 Q3451056 Q2940204 Q3451134 Q3448191 Q1356926 Q3450692 Q3452159 Q3451820 Q3449203 Q3448177 Q3450813 Q3447521 Q3447610 Q3448270 Q3448059 Q3452313 Q3450565 Q3450610 Q3450898 Q3451725 Q3450675 Q3451199 Q2384721 Q3451031 Q3450587 Q3452290 Q3448527 Q3446982 Q3447182 Q3450854
OR((c(Q34442),P47,Q533037), (c(Q34442),P47,Q790578))
action filter_type
action union
action find_reverse
entity Q533037
relation P47
action find_reverse
entity Q790578
relation P47
type Q34442
[ANSWERS] share border with boulevard Saint-Germain or avenue Kléber
{'OR': [[{'concept': 'Q34442'}, 'P47', 'Q533037'], [{'concept': 'Q34442'}, 'P47', 'Q790578']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34442 . { { ?u property:P47 resource:Q533037 } UNION { ?u property:P47 resource:Q790578 } } }
rue de la Harpe rue de Poissy rue Cimarosa rue de Rennes rue des Anglais rue Dante rue des Ciseaux rue Saint-Dominique rue des Bernardins rue Mignon rue de l'Échaudé rue Saint-Didier rue de Belloy rue de l'Université rue Saint-Guillaume rue de Luynes rue des Saints-Pères rue de Presbourg rue de l'Amiral-Hamelin rue Thénard rue Boutebrie rue Saint-Benoît rue Saint-Thomas-d'Aquin rue Paul-Valéry rue Bonaparte rue de Longchamp rue de Pontoise rue du Bac rue de Solférino carrefour de l'Odéon rue de Villersexel rue Grégoire-de-Tours Rue Saint-Jacques, Paris rue de Courty rue du Cardinal-Lemoine rue des Fossés-Saint-Bernard rue Monge rue Gozlin rue de Lille rue Copernic rue Danton rue Hautefeuille rue Galilée rue du Four rue de Bellechasse rue de Buci rue de Montfaucon rue des Carmes rue de Cluny rue de l'Ancienne-Comédie rue de Seine rue de Saint-Simon rue de Bièvre rue du Dragon rue Jean-de-Beauvais rue Aristide-Briand rue Boissière rue de Magdebourg
Rue du Dragon, rue Saint-Benoît, rue de Bellechasse, rue Saint-Thomas-d'Aquin, rue de Saint-Simon, rue de Bièvre, rue Gozlin, rue de Montfaucon, rue de Belloy and rue de Magdebourg share border with boulevard Saint-Germain or avenue Kléber
rue du Dragon rue Saint-Benoît rue de Bellechasse rue Saint-Thomas-d'Aquin rue de Saint-Simon rue de Bièvre rue Gozlin rue de Montfaucon rue de Belloy rue de Magdebourg
action filter_type
action union
action find_reverse
entity boulevard Saint-Germain
relation shares border with
action find_reverse
entity avenue Kléber
relation shares border with
type road
{'OR': [[{'concept': 'road'}, 'shares border with', 'boulevard Saint-Germain'], [{'concept': 'road'}, 'shares border with', 'avenue Kléber']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:road . { { ?u property:shares_border_with resource:boulevard_Saint-Germain } UNION { ?u property:shares_border_with resource:avenue_Kléber } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q13220204 Q56061 Q15617994
USER
Which administrative country subdivisions are twin cities of approximately 5 administrative territories and administrative territories ?
(c(Q56061)|c(Q15617994),P190,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q15617994
value 5
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?b = 5 ) }
action approx
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type designation for an administrative territorial entity
value 5
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?b = 5 ) }
[]
second-level administrative country subdivision administrative territorial entity designation for an administrative territorial entity
Q156724 Q4191 Q101341
SYSTEM
Kremenchuk, Lucerne, Lillehammer
Q101341 Q966804 Q3370 Q990448 Q5420 Q157144 Q183394 Q926700 Q917313 Q744247 Q43595 Q4191 Q156724 Q157053 Q652130 Q62823 Q271922 Q109021
(c(Q56061)|c(Q15617994),P190,c(Q13220204))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q15617994
value 5
[ANSWERS] are twin cities of approximately 5 administrative territories and administrative territories
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?b = 5 ) }
Lillehammer Aleksinac Zadar Seixal Municipality Varaždin Vinnytsia Vagharshapat Oeiras Vila do Conde Saldus Cotonou Lucerne Kremenchuk Chernihiv Reykjanesbær Barranquilla Sremski Karlovci Moss
Kremenchuk, Lucerne and Lillehammer are twin cities of approximately 5 administrative territories and administrative territories
Kremenchuk Lucerne Lillehammer
action approx
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type designation for an administrative territorial entity
value 5
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?f rdf:type ?h } GROUP BY ?c } . FILTER ( ?b = 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P138
Q355304 Q13220204
USER
Which watercourses are max number of administrative country subdivisions named after ?
(c(Q13220204),P138,Q329002)
action argmax
action find_reverse_tuple_counts
relation P138
type Q355304
type Q13220204
[{'concept': 'Q13220204'}, 'P138', 'Q329002']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P138 ?e . ?e rdf:type ontology:Q355304 . ?q rdf:type ontology:Q13220204 } GROUP BY ?e } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P138 ?d . ?p rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q355304 } GROUP BY ?d } . FILTER ( ?i = ?z ) }
action argmax
action find_reverse_tuple_counts
relation named after
type watercourse
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'named after', 'Wieste']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:named_after ?e . ?e rdf:type ontology:watercourse . ?q rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?e } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:named_after ?d . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:watercourse } GROUP BY ?d } . FILTER ( ?i = ?z ) }
[]
watercourse second-level administrative country subdivision
Q1675
SYSTEM
Aare
Q1675
(c(Q13220204),P138,Q329002)
action argmax
action find_reverse_tuple_counts
relation P138
type Q355304
type Q13220204
Max number of administrative country subdivisions named after are [ANSWER]
[{'concept': 'Q13220204'}, 'P138', 'Q329002']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P138 ?e . ?e rdf:type ontology:Q355304 . ?q rdf:type ontology:Q13220204 } GROUP BY ?e } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P138 ?d . ?p rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q355304 } GROUP BY ?d } . FILTER ( ?i = ?z ) }
Aare
Max number of administrative country subdivisions named after are Aare
Aare
action argmax
action find_reverse_tuple_counts
relation named after
type watercourse
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'named after', 'Wieste']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:named_after ?e . ?e rdf:type ontology:watercourse . ?q rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?e } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:named_after ?d . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:watercourse } GROUP BY ?d } . FILTER ( ?i = ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q34442 Q17444909 Q79007
USER
Which roads are atmost 2 astronomical object types or streets named after ?
(c(Q17444909)|c(Q79007),P138,c(Q34442))
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q34442
type Q17444909
action find_reverse_tuple_counts
relation P138
type Q34442
type Q79007
value 2
[[{'concept': 'Q17444909'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q34442'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?c ) WHERE { { ?k property:P138 ?f . ?f rdf:type ontology:Q34442 . ?k rdf:type ontology:Q79007 } UNION { ?k property:P138 ?f . ?f rdf:type ontology:Q34442 . ?k rdf:type ontology:Q17444909 } } GROUP BY ?f } . FILTER ( ?c <= 2 ) }
action atmost
action union
action find_reverse_tuple_counts
relation named after
type road
type astronomical object type
action find_reverse_tuple_counts
relation named after
type road
type street
value 2
[[{'concept': 'astronomical object type'}, {'concept': 'street'}], 'named after', {'concept': 'road'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?c ) WHERE { { ?k property:named_after ?f . ?f rdf:type ontology:road . ?k rdf:type ontology:street } UNION { ?k property:named_after ?f . ?f rdf:type ontology:road . ?k rdf:type ontology:astronomical_object_type } } GROUP BY ?f } . FILTER ( ?c <= 2 ) }
[]
road astronomical object type street
Q2707132 Q141747 Q2174628
SYSTEM
rue de Vaugirard, rue de Rivoli, rue Saint-Denis
Q3447715 Q4123873 Q3447241 Q12743 Q3452526 Q3448145 Q19633693 Q3452514 Q3452517 Q3450806 Q3451006 Q5520547 Q3452452 Q3448069 Q2391741 Q3451754 Q3451996 Q2415369 Q4493124 Q13015224 Q2138672 Q3446922 Q3451615 Q3451089 Q3449951 Q4196820 Q2915495 Q19363524 Q3448948 Q3449493 Q3448826 Q819339 Q2149964 Q2388933 Q15410585 Q3452026 Q3451697 Q19350223 Q3450463 Q3452569 Q3451394 Q19350077 Q19428196 Q4570166 Q3451012 Q3452561 Q13015299 Q3447616 Q3450381 Q19251307 Q3452138 Q4471235 Q3446888 Q214820 Q3451420 Q3451974 Q3452047 Q4340507 Q22921146 Q3451621 Q3449487 Q3450677 Q3450672 Q19406456 Q3408537 Q3449572 Q2373120 Q19313717 Q3201211 Q552931 Q19118700 Q18946990 Q22287975 Q3451479 Q1799184 Q3140664 Q3448445 Q15883233 Q3452577 Q2086411 Q19566713 Q3450850 Q19575425 Q3450860 Q3449238 Q3450903 Q3452349 Q4503494 Q3451144 Q1985495 Q10682802 Q3450256 Q18974951 Q3450744 Q19403087 Q2188497 Q673399 Q141747 Q2537636 Q790479 Q3449933 Q14512826 Q3448435 Q1980275 Q3447537 Q19002414 Q18955701 Q26258117 Q3452469 Q2174612 Q3450694 Q777052 Q3452549 Q19271630 Q3450089 Q3451578 Q2055857 Q3447290 Q3447741 Q874951 Q3452466 Q7243965 Q3449225 Q790458 Q23810847 Q3451727 Q3450561 Q3448854 Q3450480 Q19542557 Q3449198 Q3451240 Q928901 Q2148907 Q3449851 Q19345280 Q3450360 Q3450008 Q3451803 Q3449588 Q3447758 Q3447128 Q2676575 Q3452418 Q19248338 Q3449755 Q3447689 Q3449149 Q17709168 Q1877571 Q10543811 Q3451412 Q2187762 Q1015971 Q2707132 Q21938060 Q2131144 Q3452165 Q3452168 Q3451362 Q3447887 Q3449592 Q3452015 Q3449349 Q4365612 Q3447357 Q3449844 Q19656911 Q878447 Q19313448 Q3451950 Q3447218 Q2225886 Q4276745 Q929843 Q8082347 Q316466 Q19567591 Q3451114 Q3451116 Q10570725 Q3452403 Q19518966 Q2322685 Q3449675 Q15110321 Q10713955 Q10658680 Q787113 Q4091728 Q3448272 Q3452720 Q19202433 Q3452622 Q3452173 Q3452382 Q3447873 Q3450186 Q18940480 Q290327 Q3449876 Q3452063 Q2340238 Q3449974 Q3449966 Q3451942 Q3448345 Q3451940 Q19010155 Q3451946 Q10655518 Q3451004 Q2090436 Q679282 Q11337414 Q3452086 Q3451103 Q3447731 Q19201152 Q4365713 Q3448851 Q3109040 Q3447626 Q3450515 Q21777245 Q10650487 Q3447145 Q3448169 Q6276948 Q3452300 Q3452302 Q3451342 Q14396423 Q3447564 Q3450195 Q3450070 Q3450704 Q3452035 Q3451507 Q2523030 Q3449279 Q3449605 Q3452564 Q1478999 Q3448805 Q13746957 Q5194674 Q2886447 Q3450358 Q18956126 Q1814138 Q1788276 Q3448556 Q18787354 Q2940204 Q1521617 Q1109610 Q19640724 Q1640681 Q19337122 Q3450797 Q3448155 Q3449787 Q3000918 Q3449261 Q19013506 Q14518831 Q19017298 Q3452627 Q18964622 Q493084 Q3451440 Q3451607 Q4736010 Q3354320 Q3451840 Q4094287 Q3451846 Q2495579 Q835733 Q2174628 Q3451963 Q19320855 Q3448845 Q3452087 Q860442 Q19198631 Q3448652
(c(Q17444909)|c(Q79007),P138,c(Q34442))
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q34442
type Q17444909
action find_reverse_tuple_counts
relation P138
type Q34442
type Q79007
value 2
[ANSWERS] are atmost 2 astronomical object types or streets named after
[[{'concept': 'Q17444909'}, {'concept': 'Q79007'}], 'P138', {'concept': 'Q34442'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?c ) WHERE { { ?k property:P138 ?f . ?f rdf:type ontology:Q34442 . ?k rdf:type ontology:Q79007 } UNION { ?k property:P138 ?f . ?f rdf:type ontology:Q34442 . ?k rdf:type ontology:Q17444909 } } GROUP BY ?f } . FILTER ( ?c <= 2 ) }
rue Du Guesclin Volokolamskoye Highway rue Brantôme ford rue du Poteau rue Germain-Pilon Verrijn Stuartweg rue du Plateau rue du Ponceau rue de Lappe rue de Rennes Burgemeester De Vlugtlaan rue du Mont-Cenis rue Ganneron rue du Buisson-Saint-Louis rue des Cloÿs rue des Pyramides rue du Simplon Frunzenskaya Embankment Thanon Borommaratchachonnani Samariterstraße rue Amelot rue des Abbesses rue de Tolbiac rue Saint-Paul Ivanteyevskaya Street rue de Richelieu Weverseinde rue Léon rue Piat rue Legendre Bergstraße Route Churchillplein rue Basfroi The Crescent rue des Récollets rue des Bourdonnais Monstersestraat rue d'Alésia rue du Roi-d'Alger rue de la Convention Monnickendamplein Poortwachter Malmskillnadsgatan rue de Rochechouart rue du Rendez-Vous Arun Amarin road rue Dareau rue Véron Hesseplaats rue du Caire Akademika Yangelya Street rue Alexandre-Dumas Whitehall rue de la Folie-Regnault rue des Poissonniers rue des Taillandiers Okhotny Ryad Summit Avenue rue des Acacias rue Philidor rue de Cléry rue de Clichy Parkweg Voorschoterlaan rue Pixérécourt rue des Tourelles Kralingse Zoom Jan van Galenstraat Warschauer Straße Ganzenhoef Beresteinlaan Jafféstraße rue de la Mare Nishiseto Expressway Hornsgatan rue Jean-Beausire Van Boshuizenstraat rue du Sahel Slinge Tienhovenselaan rue de Lévis Uilenstede rue de Marignan rue Montmartre rue de Montpensier rue du Général-Guilhem Tsvetnoy Boulevard rue de Wattignies Vijzelgracht Styrmansgatan rue Vandrezanne Brouwersgracht rue de Gergovie Ouderkerkerlaan rue Montgallet Rokin rue de Rivoli rue de Paradis Avenida Roque Sáenz Peña rue Saint-Maur Van der Madeweg rue Jean-Baptiste-Pigalle Rijksstraatweg rue Corvisart De Rade Blaak rue Beaurepaire rue du Moulinet rue Hittorf rue de Crimée 9 de Julio Avenue rue du Père-Julien-Dhuit Isolatorweg rue Stendhal rue de la Sorbonne Spaklerweg rue Calmels rue Dupetit-Thouars Schwedenplatz rue du Moulin-des-Prés Prince Edward Road rue Montbrun Avenida Callao Spanische Allee rue des Cascades rue de Beaujolais rue Letort rue d'Argentine Sportlaan rue Mondétour rue de l'Ermitage Köpmangatan rue Marcadet rue Saint-Charles Smidsweg rue Vitruve rue Sainte-Foy rue des Entrepreneurs rue Poissonnière rue Duris rue Berger Hereweg rue du Louvre Henk Sneevlietweg rue Rochebrune rue Dombasle rue Meslay Avenue de Waterloo Postjesweg Karlsbodavägen rue de la Duée Cornelis Lelylaan Phaya Thai Road rue de Vaugirard Berliner Straße Bergweg rue du Charolais rue du Chemin-Vert rue de la Chapelle rue Fermat rue Poncelet rue des Rondeaux rue Orfila Krasnye Vorota Square rue Championnet rue Saint-Bernard Willem Dreeslaan Yorckstraße Kraaiennest rue des Patriarches rue Boulay Amstelveenseweg Malaya Bronnaya Street Mittraphap Road Świętokrzyska Street, Warsaw Kottbusser Tor Tochtenweg rue de Valois rue de Varenne Lundagatan rue du Lieutenant-Chauré Slotlaan Arent Janszoon Ernststraat rue Ramey Elsenstraße Vendevägen Rådmansgatan promenade Bolshaya Tulskaya Street rue Haxo rue Érard Heemraadlaan rue du Télégraphe rue du Chevaleret rue du Havre rue Falguière rue Tourlaque Arnhemseweg rue de Provence rue Saint-Georges rue des Trois-Bornes Spui rue Saint-Sébastien rue Saint-Sabin rue des Orteaux rue Hermel rue des Ormeaux De la Reyweg rue des Panoyaux Ringvägen rue de Reuilly Eendrachtsplein Vasagatan Phetchaburi road rue des Vignoles rue de Trévise rue Duhesme Gorsdijk Prechistenskiye Vorota Square rue Lesage Heemstedestraat rue Dauphine rue d'Eupatoria Wilhelmsaue Regeringsgatan rue Berzélius rue Gomboust Jordan Road rue du Faubourg-Saint-Jacques rue du Faubourg-Saint-Martin rue de la Boule-Rouge Patte d'Oie rue Crozatier rue Tourneux rue Singer rue de Dantzig rue des Saints-Pères rue de la Moselle Birger Jarlsgatan rue Nationale rue Pouchet rue du Retrait rue Saint-Martin rue Lebouis Laan van Nieuw Oost-Indië Kromme Zandweg Oranjebaan rue Visconti Zonnestein Hofplein Sveavägen rue Joanès Gerdesiaweg carrefour de l'Odéon Si Lom Nowy Świat Street Voorweg rue de la Chaussée-d'Antin Marne rue de Lagny rue Girardon rue Rouelle cour Saint-Émilion rue Mouton-Duvernet Dedemsvaartweg Wibautstraat Dierenselaan rue du Vertbois Bouwlustlaan rue du Faubourg-Saint-Antoine rue de la Glacière rue de la Voûte Alta Vista Drive Heiligeweg rue des Grands-Champs Borovitskaya square rue des Gravilliers Kleiweg German Wine Route rue Saint-Denis rue des Petits-Pères Strijensedijk rue Lepic rue des Volontaires Sunset Boulevard Gondel rue Julien-Lacroix
Rue de Vaugirard, rue de Rivoli and rue Saint-Denis are atmost 2 astronomical object types or streets named after
rue de Vaugirard rue de Rivoli rue Saint-Denis
action atmost
action union
action find_reverse_tuple_counts
relation named after
type road
type astronomical object type
action find_reverse_tuple_counts
relation named after
type road
type street
value 2
[[{'concept': 'astronomical object type'}, {'concept': 'street'}], 'named after', {'concept': 'road'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?c ) WHERE { { ?k property:named_after ?f . ?f rdf:type ontology:road . ?k rdf:type ontology:street } UNION { ?k property:named_after ?f . ?f rdf:type ontology:road . ?k rdf:type ontology:astronomical_object_type } } GROUP BY ?f } . FILTER ( ?c <= 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2174628
P669
Q44539
USER
Which temple is located on that road ?
(c(Q44539),P669,Q2174628)
action filter_type
action find_reverse
entity Q2174628
relation P669
type Q44539
[{'concept': 'Q44539'}, 'P669', 'Q2174628']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q44539 . ?t property:P669 resource:Q2174628 }
rue Saint-Denis
action filter_type
action find_reverse
entity rue Saint-Denis
relation located on street
type temple
[{'concept': 'temple'}, 'located on street', 'rue Saint-Denis']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:temple . ?t property:located_on_street resource:rue_Saint-Denis }
[]
temple
Clarification for simple ques.
Q2707132
SYSTEM
Did you mean rue de Vaugirard ?
Q2707132 Q141747 Q2174628
(c(Q44539),P669,Q2707132) (c(Q44539),P669,Q141747) (c(Q44539),P669,Q2174628)
[ANSWER]
[{'concept': 'Q44539'}, 'P669', 'Q2707132'] [{'concept': 'Q44539'}, 'P669', 'Q141747'] [{'concept': 'Q44539'}, 'P669', 'Q2174628']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q44539 . ?t property:P669 resource:Q2174628 }
rue de Vaugirard rue de Rivoli rue Saint-Denis
Did you mean rue de Vaugirard ?
rue de Vaugirard
[{'concept': 'temple'}, 'located on street', 'rue de Vaugirard'] [{'concept': 'temple'}, 'located on street', 'rue de Rivoli'] [{'concept': 'temple'}, 'located on street', 'rue Saint-Denis']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:temple . ?t property:located_on_street resource:rue_Saint-Denis }
[]
Simple Question (Coreferenced)
USER
No, I meant rue Saint-Denis. Could you tell me the answer for that?
(c(Q44539),P669,Q2174628)
Q2174628
[{'concept': 'Q44539'}, 'P669', 'Q2174628']
[{'concept': 'temple'}, 'located on street', 'rue Saint-Denis']
[]
Q1629670
SYSTEM
Église Saint-Leu-Saint-Gilles de Paris
Q1629670
(c(Q44539),P669,Q2174628)
action filter_type
action find_reverse
entity Q2174628
relation P669
type Q44539
[ANSWER] is located on that road
[{'concept': 'Q44539'}, 'P669', 'Q2174628']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q44539 . ?t property:P669 resource:Q2174628 }
Église Saint-Leu-Saint-Gilles de Paris
Église Saint-Leu-Saint-Gilles de Paris is located on that road
Église Saint-Leu-Saint-Gilles de Paris
action filter_type
action find_reverse
entity rue Saint-Denis
relation located on street
type temple
[{'concept': 'temple'}, 'located on street', 'rue Saint-Denis']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:temple . ?t property:located_on_street resource:rue_Saint-Denis }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q587
P417
Q1445650 Q44539
USER
Which holidays are the patron saints of approximately the same number of temples as All Saints ?
(c(Q44539),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q44539
action count
action filter_type
action find
entity Q587
relation P417
type Q1445650
[{'concept': 'Q44539'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:P417 ?k . ?k rdf:type ontology:Q1445650 . ?m rdf:type ontology:Q44539 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q587 property:P417 ?c . ?c rdf:type ontology:Q1445650 } } . FILTER ( ?p = ?o ) }
All Saints
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type temple
action count
action filter_type
action find
entity All Saints
relation patron saint
type holiday
[{'concept': 'temple'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:patron_saint ?k . ?k rdf:type ontology:holiday . ?m rdf:type ontology:temple } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:All_Saints property:patron_saint ?c . ?c rdf:type ontology:holiday } } . FILTER ( ?p = ?o ) }
[]
holiday temple
Q152771 Q154326 Q587
SYSTEM
Presentation of Jesus at the Temple, Annunciation, All Saints
Q152771 Q154326 Q587
(c(Q44539),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q44539
action count
action filter_type
action find
entity Q587
relation P417
type Q1445650
[ANSWERS] are the patron saints of approximately the same number of temples as All Saints
[{'concept': 'Q44539'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:P417 ?k . ?k rdf:type ontology:Q1445650 . ?m rdf:type ontology:Q44539 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q587 property:P417 ?c . ?c rdf:type ontology:Q1445650 } } . FILTER ( ?p = ?o ) }
Presentation of Jesus at the Temple Annunciation All Saints
Presentation of Jesus at the Temple, Annunciation and All Saints are the patron saints of approximately the same number of temples as All Saints
Presentation of Jesus at the Temple Annunciation All Saints
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type temple
action count
action filter_type
action find
entity All Saints
relation patron saint
type holiday
[{'concept': 'temple'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:patron_saint ?k . ?k rdf:type ontology:holiday . ?m rdf:type ontology:temple } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:All_Saints property:patron_saint ?c . ?c rdf:type ontology:holiday } } . FILTER ( ?p = ?o ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q152771 Q154326 Q587
P417
Q15617994
USER
Who have adopted Presentation of Jesus at the Temple, Annunciation and All Saints as their patron saint ?
(c(Q15617994),P417,Q152771) (c(Q15617994),P417,Q154326) (c(Q15617994),P417,Q587)
action union
action filter_type
action find_reverse
entity Q152771
relation P417
type Q15617994
action filter_type
action find_reverse
entity Q154326
relation P417
type Q15617994
action filter_type
action find_reverse
entity Q587
relation P417
type Q15617994
[{'concept': 'Q15617994'}, 'P417', 'Q152771'] [{'concept': 'Q15617994'}, 'P417', 'Q154326'] [{'concept': 'Q15617994'}, 'P417', 'Q587']
SELECT DISTINCT ?h WHERE { VALUES ( ?y ) { ( resource:Q152771 ) ( resource:Q154326 ) } . ?h property:P417 ?y }
Presentation of Jesus at the Temple Annunciation All Saints
action union
action filter_type
action find_reverse
entity Presentation of Jesus at the Temple
relation patron saint
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Annunciation
relation patron saint
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity All Saints
relation patron saint
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Presentation of Jesus at the Temple'] [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Annunciation'] [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'All Saints']
SELECT DISTINCT ?h WHERE { VALUES ( ?y ) { ( resource:Presentation_of_Jesus_at_the_Temple ) ( resource:Annunciation ) } . ?h property:patron_saint ?y }
[]
designation for an administrative territorial entity
Q101526 Q17854 Q103572
SYSTEM
Rovetta, Roccaverano, Borgosatollo
Q47371 Q53136 Q490416 Q99969 Q271236 Q25155 Q46793 Q17854 Q51473 Q39783 Q103572 Q101423 Q214691 Q9432 Q47342 Q101526
(c(Q15617994),P417,Q152771) (c(Q15617994),P417,Q154326) (c(Q15617994),P417,Q587)
action union
action filter_type
action find_reverse
entity Q152771
relation P417
type Q15617994
action filter_type
action find_reverse
entity Q154326
relation P417
type Q15617994
action filter_type
action find_reverse
entity Q587
relation P417
type Q15617994
[ANSWERS] have adopted Presentation of Jesus at the Temple, Annunciation and All Saints as their patron saint
[{'concept': 'Q15617994'}, 'P417', 'Q152771'] [{'concept': 'Q15617994'}, 'P417', 'Q154326'] [{'concept': 'Q15617994'}, 'P417', 'Q587']
SELECT DISTINCT ?h WHERE { VALUES ( ?y ) { ( resource:Q152771 ) ( resource:Q154326 ) } . ?h property:P417 ?y }
Tarzo Romans d'Isonzo Merì Blello Spotorno Motta de' Conti Marano Vicentino Roccaverano Valle Castellana Mel Borgosatollo Ponte Nossa Magliano in Toscana Lombriasco Arzignano Rovetta
Rovetta, Roccaverano and Borgosatollo have adopted Presentation of Jesus at the Temple, Annunciation and All Saints as their patron saint
Rovetta Roccaverano Borgosatollo
action union
action filter_type
action find_reverse
entity Presentation of Jesus at the Temple
relation patron saint
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Annunciation
relation patron saint
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity All Saints
relation patron saint
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Presentation of Jesus at the Temple'] [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Annunciation'] [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'All Saints']
SELECT DISTINCT ?h WHERE { VALUES ( ?y ) { ( resource:Presentation_of_Jesus_at_the_Temple ) ( resource:Annunciation ) } . ?h property:patron_saint ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q156724
P194
Q1752346
USER
Which assembly governs Kremenchuk ?
(Q156724,P194,c(Q1752346))
action filter_type
action find
entity Q156724
relation P194
type Q1752346
['Q156724', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1752346 . resource:Q156724 property:P194 ?t }
Kremenchuk
action filter_type
action find
entity Kremenchuk
relation legislative body
type assembly
['Kremenchuk', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:assembly . resource:Kremenchuk property:legislative_body ?t }
[]
assembly
Q12114504
SYSTEM
Kremenchuk City Municipality
Q12114504
(Q156724,P194,c(Q1752346))
action filter_type
action find
entity Q156724
relation P194
type Q1752346
[ANSWER] governs Kremenchuk
['Q156724', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1752346 . resource:Q156724 property:P194 ?t }
Kremenchuk City Municipality
Kremenchuk City Municipality governs Kremenchuk
Kremenchuk City Municipality
action filter_type
action find
entity Kremenchuk
relation legislative body
type assembly
['Kremenchuk', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:assembly . resource:Kremenchuk property:legislative_body ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2240825 Q2174628
P17
Q15617994
USER
Which administrative territories are rue Saint-Denis or Châu Phú B located in ?
OR((Q2174628,P17,c(Q15617994)), (Q2240825,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2174628
relation P17
action find
entity Q2240825
relation P17
type Q15617994
{'OR': [['Q2174628', 'P17', {'concept': 'Q15617994'}], ['Q2240825', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2174628 property:P17 ?i } UNION { resource:Q2240825 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
Châu Phú B rue Saint-Denis
action filter_type
action union
action find
entity rue Saint-Denis
relation country
action find
entity Châu Phú B
relation country
type designation for an administrative territorial entity
{'OR': [['rue Saint-Denis', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Châu Phú B', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:rue_Saint-Denis property:country ?i } UNION { resource:Châu_Phú_B property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q881
SYSTEM
France, Vietnam
Q142 Q881
OR((Q2174628,P17,c(Q15617994)), (Q2240825,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2174628
relation P17
action find
entity Q2240825
relation P17
type Q15617994
Rue Saint-Denis or Châu Phú B are located in [ANSWERS]
{'OR': [['Q2174628', 'P17', {'concept': 'Q15617994'}], ['Q2240825', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2174628 property:P17 ?i } UNION { resource:Q2240825 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
France Vietnam
Rue Saint-Denis or Châu Phú B are located in France and Vietnam
France Vietnam
action filter_type
action union
action find
entity rue Saint-Denis
relation country
action find
entity Châu Phú B
relation country
type designation for an administrative territorial entity
{'OR': [['rue Saint-Denis', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Châu Phú B', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:rue_Saint-Denis property:country ?i } UNION { resource:Châu_Phú_B property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]