Simple Question (Direct)
Simple Question
Q450797
P1066
Q502895
USER
Who taught Hervé ?
(Q450797,P1066,c(Q502895))
action filter_type
action find
entity Q450797
relation P1066
type Q502895
['Q450797', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q450797 property:P1066 ?w . ?w rdf:type ontology:Q502895 }
Hervé
action filter_type
action find
entity Hervé
relation student of
type common name
['Hervé', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hervé property:student_of ?w . ?w rdf:type ontology:common_name }
[]
common name
Q157672
SYSTEM
Daniel Auber
Q157672
(Q450797,P1066,c(Q502895))
action filter_type
action find
entity Q450797
relation P1066
type Q502895
[ANSWER] taught Hervé
['Q450797', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q450797 property:P1066 ?w . ?w rdf:type ontology:Q502895 }
Daniel Auber
Daniel Auber taught Hervé
Daniel Auber
action filter_type
action find
entity Hervé
relation student of
type common name
['Hervé', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hervé property:student_of ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q157672
P138
Q34442
USER
Which road has that person as its namesake ?
(c(Q34442),P138,Q157672)
action filter_type
action find_reverse
entity Q157672
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q157672']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q34442 . ?m property:P138 resource:Q157672 }
Daniel Auber
action filter_type
action find_reverse
entity Daniel Auber
relation named after
type road
[{'concept': 'road'}, 'named after', 'Daniel Auber']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:road . ?m property:named_after resource:Daniel_Auber }
[]
road
Q3447004
SYSTEM
rue Auber
Q3447004
(c(Q34442),P138,Q157672)
action filter_type
action find_reverse
entity Q157672
relation P138
type Q34442
[ANSWER] has that person as its namesake
[{'concept': 'Q34442'}, 'P138', 'Q157672']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q34442 . ?m property:P138 resource:Q157672 }
rue Auber
Rue Auber has that person as its namesake
rue Auber
action filter_type
action find_reverse
entity Daniel Auber
relation named after
type road
[{'concept': 'road'}, 'named after', 'Daniel Auber']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:road . ?m property:named_after resource:Daniel_Auber }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3447004
P47
Q34442
USER
How many roads do rue Auber share a border with ?
(c(Q34442),P47,Q3447004)
action count
action filter_type
action find_reverse
entity Q3447004
relation P47
type Q34442
[{'concept': 'Q34442'}, 'P47', 'Q3447004']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P47 resource:Q3447004 . ?j rdf:type ontology:Q34442 }
rue Auber
action count
action filter_type
action find_reverse
entity rue Auber
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Auber']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:shares_border_with resource:rue_Auber . ?j rdf:type ontology:road }
[]
road
SYSTEM
6
Q3447213 Q3452382 Q15967903 Q3450639 Q3451910 Q3450046
(c(Q34442),P47,Q3447004)
action count
action filter_type
action find_reverse
entity Q3447004
relation P47
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P47', 'Q3447004']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P47 resource:Q3447004 . ?j rdf:type ontology:Q34442 }
rue Boudreau rue du Havre rue Tronchet rue de Caumartin rue des Mathurins rue Scribe
6
action count
action filter_type
action find_reverse
entity rue Auber
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Auber']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:shares_border_with resource:rue_Auber . ?j rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3452728
P47
Q34442
USER
And also tell me about rue Étienne-Marey?
(c(Q34442),P47,Q3452728)
action count
action filter_type
action find_reverse
entity Q3452728
relation P47
type Q34442
[{'concept': 'Q34442'}, 'P47', 'Q3452728']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P47 resource:Q3452728 . ?x rdf:type ontology:Q34442 }
rue Étienne-Marey
action count
action filter_type
action find_reverse
entity rue Étienne-Marey
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Étienne-Marey']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:shares_border_with resource:rue_Étienne-Marey . ?x rdf:type ontology:road }
[]
road
SYSTEM
6
Q2423151 Q3452602 Q3446918 Q3452403 Q3448272 Q3451410
(c(Q34442),P47,Q3452728)
action count
action filter_type
action find_reverse
entity Q3452728
relation P47
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P47', 'Q3452728']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P47 resource:Q3452728 . ?x rdf:type ontology:Q34442 }
rue du Capitaine-Marchal rue du Surmelin rue Alphonse-Penaud rue du Lieutenant-Chauré rue Haxo rue de la Dhuis
6
action count
action filter_type
action find_reverse
entity rue Étienne-Marey
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Étienne-Marey']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:shares_border_with resource:rue_Étienne-Marey . ?x rdf:type ontology:road }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q6506699
P669
Q34442 Q4830453
USER
Which business enterprises are located on more number of roads than Le Chateaubriand ?
(c(Q4830453),P669,c(Q34442))
action greater
action find_tuple_counts
relation P669
type Q4830453
type Q34442
action count
action filter_type
action find
entity Q6506699
relation P669
type Q4830453
[{'concept': 'Q4830453'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q6506699 property:P669 ?s . ?s rdf:type ontology:Q4830453 } } . FILTER ( ?l > ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?l ) WHERE { ?r property:P669 ?j . ?j rdf:type ontology:Q34442 . ?r rdf:type ontology:Q4830453 } GROUP BY ?r } }
Le Chateaubriand
action greater
action find_tuple_counts
relation located on street
type business enterprise
type road
action count
action filter_type
action find
entity Le Chateaubriand
relation located on street
type business enterprise
[{'concept': 'business enterprise'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Le_Chateaubriand property:located_on_street ?s . ?s rdf:type ontology:business_enterprise } } . FILTER ( ?l > ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?l ) WHERE { ?r property:located_on_street ?j . ?j rdf:type ontology:road . ?r rdf:type ontology:business_enterprise } GROUP BY ?r } }
[]
road business enterprise
Q1814421 Q6465803 Q15213237
SYSTEM
Parkheuvel, La Vilette, De Molen
Q1814421 Q20639997 Q8170993 Q21091929 Q478198 Q7942714 Q15213226 Q15213228 Q6455598 Q14256548 Q5244479 Q23831010 Q8030339 Q16899836 Q6455605 Q7428154 Q1810254 Q23010011 Q4414294 Q2052036 Q20747576 Q16323650 Q6507353 Q5278252 Q2001137 Q2304666 Q17300203 Q23013754 Q15043405 Q6465803 Q2329566 Q22343504 Q22998530 Q15213237 Q6420169 Q2521084 Q751293 Q5997415 Q17303726 Q7477293 Q17233276 Q171475 Q2896854 Q1071456 Q15260209 Q3394227 Q5492658 Q48592 Q21857804
(c(Q4830453),P669,c(Q34442))
action greater
action find_tuple_counts
relation P669
type Q4830453
type Q34442
action count
action filter_type
action find
entity Q6506699
relation P669
type Q4830453
[ANSWERS] are located on more number of roads than Le Chateaubriand
[{'concept': 'Q4830453'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q6506699 property:P669 ?s . ?s rdf:type ontology:Q4830453 } } . FILTER ( ?l > ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?l ) WHERE { ?r property:P669 ?j . ?j rdf:type ontology:Q34442 . ?r rdf:type ontology:Q4830453 } GROUP BY ?r } }
Parkheuvel La Bici / Eetcafe 't Fietske 't Koetshuis Blok's Restaurant InterContinental Amstel Amsterdam Vreugd en Rust De Gieser Wildeman De Heer Kocken L'Arpège Restaurant Kasteel Heemstede De Kromme Dissel Restaurant Godt Wollerich Schathoes Verhildersum L'As du Fallafel Savelberg Le Train Bleu Joelia Kraantje Lek Royal 't Vlasbloemeken Grønbech & Churchill Le Mérinos d'Or Dingo Bar De Stenen Tafel De Kromme Watergang Wolfslaar Studio Kokkeriet La Vilette Carelshaven Zarzo Restaurant Relæ De Molen Klein Paardenburg Kasteel Wittem Café Procope Ile de France Au chien qui fume Dikker & Thijs Het Jachthuis Hoog Soeren Herberg Onder de Linden Le Grand Véfour Chez Chartier Muller Polidor Frantzén Noma Sct. Oluf
Parkheuvel, La Vilette and De Molen are located on more number of roads than Le Chateaubriand
Parkheuvel La Vilette De Molen
action greater
action find_tuple_counts
relation located on street
type business enterprise
type road
action count
action filter_type
action find
entity Le Chateaubriand
relation located on street
type business enterprise
[{'concept': 'business enterprise'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Le_Chateaubriand property:located_on_street ?s . ?s rdf:type ontology:business_enterprise } } . FILTER ( ?l > ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?l ) WHERE { ?r property:located_on_street ?j . ?j rdf:type ontology:road . ?r rdf:type ontology:business_enterprise } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3079972
P669
Q34442 Q4830453
USER
And what about Fouquet's?
(c(Q4830453),P669,c(Q34442))
action greater
action find_tuple_counts
relation P669
type Q4830453
type Q34442
action count
action filter_type
action find
entity Q3079972
relation P669
type Q4830453
[{'concept': 'Q4830453'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e rdf:type ontology:Q4830453 . ?c rdf:type ontology:Q34442 . ?e property:P669 ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n rdf:type ontology:Q4830453 . resource:Q3079972 property:P669 ?n } } . FILTER ( ?l > ?i ) }
Fouquet's
action greater
action find_tuple_counts
relation located on street
type business enterprise
type road
action count
action filter_type
action find
entity Fouquet's
relation located on street
type business enterprise
[{'concept': 'business enterprise'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e rdf:type ontology:business_enterprise . ?c rdf:type ontology:road . ?e property:located_on_street ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n rdf:type ontology:business_enterprise . resource:Fouquet's property:located_on_street ?n } } . FILTER ( ?l > ?i ) }
[]
road business enterprise
Q1814421 Q6465803 Q15213237
SYSTEM
Parkheuvel, La Vilette, De Molen
Q1814421 Q20639997 Q8170993 Q21091929 Q478198 Q7942714 Q15213226 Q15213228 Q6455598 Q14256548 Q5244479 Q23831010 Q8030339 Q16899836 Q6455605 Q7428154 Q1810254 Q23010011 Q4414294 Q2052036 Q20747576 Q16323650 Q6507353 Q5278252 Q2001137 Q2304666 Q17300203 Q23013754 Q15043405 Q6465803 Q2329566 Q22343504 Q22998530 Q15213237 Q6420169 Q2521084 Q751293 Q5997415 Q17303726 Q7477293 Q17233276 Q171475 Q2896854 Q1071456 Q15260209 Q3394227 Q5492658 Q48592 Q21857804
(c(Q4830453),P669,c(Q34442))
action greater
action find_tuple_counts
relation P669
type Q4830453
type Q34442
action count
action filter_type
action find
entity Q3079972
relation P669
type Q4830453
[ANSWERS]
[{'concept': 'Q4830453'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e rdf:type ontology:Q4830453 . ?c rdf:type ontology:Q34442 . ?e property:P669 ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n rdf:type ontology:Q4830453 . resource:Q3079972 property:P669 ?n } } . FILTER ( ?l > ?i ) }
Parkheuvel La Bici / Eetcafe 't Fietske 't Koetshuis Blok's Restaurant InterContinental Amstel Amsterdam Vreugd en Rust De Gieser Wildeman De Heer Kocken L'Arpège Restaurant Kasteel Heemstede De Kromme Dissel Restaurant Godt Wollerich Schathoes Verhildersum L'As du Fallafel Savelberg Le Train Bleu Joelia Kraantje Lek Royal 't Vlasbloemeken Grønbech & Churchill Le Mérinos d'Or Dingo Bar De Stenen Tafel De Kromme Watergang Wolfslaar Studio Kokkeriet La Vilette Carelshaven Zarzo Restaurant Relæ De Molen Klein Paardenburg Kasteel Wittem Café Procope Ile de France Au chien qui fume Dikker & Thijs Het Jachthuis Hoog Soeren Herberg Onder de Linden Le Grand Véfour Chez Chartier Muller Polidor Frantzén Noma Sct. Oluf
Parkheuvel La Vilette De Molen
action greater
action find_tuple_counts
relation located on street
type business enterprise
type road
action count
action filter_type
action find
entity Fouquet's
relation located on street
type business enterprise
[{'concept': 'business enterprise'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?l ) WHERE { ?e rdf:type ontology:business_enterprise . ?c rdf:type ontology:road . ?e property:located_on_street ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n rdf:type ontology:business_enterprise . resource:Fouquet's property:located_on_street ?n } } . FILTER ( ?l > ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P669
Q79007 Q811979 Q4830453
USER
How many business enterprises have their location as around 2 streets and architectural structures ?
(c(Q4830453),P669,c(Q79007)|c(Q811979))
action count
action approx
action union
action find_tuple_counts
relation P669
type Q4830453
type Q79007
action find_tuple_counts
relation P669
type Q4830453
type Q811979
value 2
[{'concept': 'Q4830453'}, 'P669', [{'concept': 'Q79007'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { FILTER ( ?b = 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?b ) WHERE { { ?f property:P669 ?j . ?f rdf:type ontology:Q4830453 . ?j rdf:type ontology:Q79007 } UNION { ?f rdf:type ontology:Q4830453 . ?j rdf:type ontology:Q811979 . ?f property:P669 ?j } } GROUP BY ?f } }
action count
action approx
action union
action find_tuple_counts
relation located on street
type business enterprise
type street
action find_tuple_counts
relation located on street
type business enterprise
type architectural structure
value 2
[{'concept': 'business enterprise'}, 'located on street', [{'concept': 'street'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { FILTER ( ?b = 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?b ) WHERE { { ?f property:located_on_street ?j . ?f rdf:type ontology:business_enterprise . ?j rdf:type ontology:street } UNION { ?f rdf:type ontology:business_enterprise . ?j rdf:type ontology:architectural_structure . ?f property:located_on_street ?j } } GROUP BY ?f } }
[]
street architectural structure business enterprise
SYSTEM
1
Q2933008
(c(Q4830453),P669,c(Q79007)|c(Q811979))
action count
action approx
action union
action find_tuple_counts
relation P669
type Q4830453
type Q79007
action find_tuple_counts
relation P669
type Q4830453
type Q811979
value 2
[ANSWER]
[{'concept': 'Q4830453'}, 'P669', [{'concept': 'Q79007'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { FILTER ( ?b = 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?b ) WHERE { { ?f property:P669 ?j . ?f rdf:type ontology:Q4830453 . ?j rdf:type ontology:Q79007 } UNION { ?f rdf:type ontology:Q4830453 . ?j rdf:type ontology:Q811979 . ?f property:P669 ?j } } GROUP BY ?f } }
Café de la Paix
1
action count
action approx
action union
action find_tuple_counts
relation located on street
type business enterprise
type street
action find_tuple_counts
relation located on street
type business enterprise
type architectural structure
value 2
[{'concept': 'business enterprise'}, 'located on street', [{'concept': 'street'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { FILTER ( ?b = 2 ) . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?b ) WHERE { { ?f property:located_on_street ?j . ?f rdf:type ontology:business_enterprise . ?j rdf:type ontology:street } UNION { ?f rdf:type ontology:business_enterprise . ?j rdf:type ontology:architectural_structure . ?f property:located_on_street ?j } } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q34107 Q15213237
P47 P17
Q15617994
USER
Which administrative territories are De Molen located in or share the border with Monterosso Almo ?
OR((Q15213237,P17,c(Q15617994)), (Q34107,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15213237
relation P17
action find
entity Q34107
relation P47
type Q15617994
{'OR': [['Q15213237', 'P17', {'concept': 'Q15617994'}], ['Q34107', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q15213237 property:P17 ?o } UNION { resource:Q34107 property:P47 ?o } } . ?o rdf:type ontology:Q15617994 }
Monterosso Almo De Molen
action filter_type
action union
action find
entity De Molen
relation country
action find
entity Monterosso Almo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['De Molen', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Monterosso Almo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:De_Molen property:country ?o } UNION { resource:Monterosso_Almo property:shares_border_with ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34083 Q55 Q34066 Q478965 Q13674 Q478346
SYSTEM
Giarratana, Netherlands, Chiaramonte Gulfi, Vizzini, Ragusa, Licodia Eubea
Q34083 Q55 Q34066 Q478965 Q13674 Q478346
OR((Q15213237,P17,c(Q15617994)), (Q34107,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15213237
relation P17
action find
entity Q34107
relation P47
type Q15617994
De Molen are located share of [ANSWERS]
{'OR': [['Q15213237', 'P17', {'concept': 'Q15617994'}], ['Q34107', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q15213237 property:P17 ?o } UNION { resource:Q34107 property:P47 ?o } } . ?o rdf:type ontology:Q15617994 }
Giarratana Netherlands Chiaramonte Gulfi Vizzini Ragusa Licodia Eubea
De Molen are located share of Giarratana, Netherlands, Chiaramonte Gulfi, Vizzini, Ragusa and Licodia Eubea
Giarratana Netherlands Chiaramonte Gulfi Vizzini Ragusa Licodia Eubea
action filter_type
action union
action find
entity De Molen
relation country
action find
entity Monterosso Almo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['De Molen', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Monterosso Almo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:De_Molen property:country ?o } UNION { resource:Monterosso_Almo property:shares_border_with ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q294746 Q15213237
P47 P17
Q15617994
USER
Which administrative territories do De Molen belong to or have a shared border with Bolotana ?
OR((Q15213237,P17,c(Q15617994)), (Q294746,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15213237
relation P17
action find
entity Q294746
relation P47
type Q15617994
{'OR': [['Q15213237', 'P17', {'concept': 'Q15617994'}], ['Q294746', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q15213237 property:P17 ?o } UNION { resource:Q294746 property:P47 ?o } } }
Bolotana De Molen
action filter_type
action union
action find
entity De Molen
relation country
action find
entity Bolotana
relation shares border with
type designation for an administrative territorial entity
{'OR': [['De Molen', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bolotana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:De_Molen property:country ?o } UNION { resource:Bolotana property:shares_border_with ?o } } }
[]
designation for an administrative territorial entity
Q294760 Q390280 Q295248 Q295414 Q295595 Q295289 Q55 Q295169 Q295564 Q390845
SYSTEM
Bortigali, Bonorva, Macomer, Orani, Sardinia, Silanus, Sardinia, Noragugume, Netherlands, Lei, Sardinia, Ottana, Illorai
Q294760 Q390280 Q295248 Q295414 Q295595 Q295289 Q55 Q295169 Q295564 Q390845
OR((Q15213237,P17,c(Q15617994)), (Q294746,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15213237
relation P17
action find
entity Q294746
relation P47
type Q15617994
De Molen belong to [ANSWERS]
{'OR': [['Q15213237', 'P17', {'concept': 'Q15617994'}], ['Q294746', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q15213237 property:P17 ?o } UNION { resource:Q294746 property:P47 ?o } } }
Bortigali Bonorva Macomer Orani, Sardinia Silanus, Sardinia Noragugume Netherlands Lei, Sardinia Ottana Illorai
De Molen belong to Bortigali, Bonorva, Macomer, Orani, Sardinia, Silanus, Sardinia, Noragugume, Netherlands, Lei, Sardinia, Ottana and Illorai
Bortigali Bonorva Macomer Orani, Sardinia Silanus, Sardinia Noragugume Netherlands Lei, Sardinia Ottana Illorai
action filter_type
action union
action find
entity De Molen
relation country
action find
entity Bolotana
relation shares border with
type designation for an administrative territorial entity
{'OR': [['De Molen', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bolotana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:De_Molen property:country ?o } UNION { resource:Bolotana property:shares_border_with ?o } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are bordered by that administrative territory ?
(c(Q15617994),P47,Q295169)
[{'concept': 'Q15617994'}, 'P47', 'Q295169']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q295169 . ?z rdf:type ontology:Q15617994 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lei, Sardinia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Lei,_Sardinia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q390280
SYSTEM
Did you mean Bonorva ?
(c(Q15617994),P47,Q294760) (c(Q15617994),P47,Q390280) (c(Q15617994),P47,Q295248) (c(Q15617994),P47,Q295414) (c(Q15617994),P47,Q295595) (c(Q15617994),P47,Q295289) (c(Q15617994),P47,Q55) (c(Q15617994),P47,Q295169) (c(Q15617994),P47,Q295564) (c(Q15617994),P47,Q390845)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q294760'] [{'concept': 'Q15617994'}, 'P47', 'Q390280'] [{'concept': 'Q15617994'}, 'P47', 'Q295248'] [{'concept': 'Q15617994'}, 'P47', 'Q295414'] [{'concept': 'Q15617994'}, 'P47', 'Q295595'] [{'concept': 'Q15617994'}, 'P47', 'Q295289'] [{'concept': 'Q15617994'}, 'P47', 'Q55'] [{'concept': 'Q15617994'}, 'P47', 'Q295169'] [{'concept': 'Q15617994'}, 'P47', 'Q295564'] [{'concept': 'Q15617994'}, 'P47', 'Q390845']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q295169 . ?z rdf:type ontology:Q15617994 }
Did you mean Bonorva ?
Bonorva
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bortigali'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bonorva'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Macomer'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Orani, Sardinia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Silanus, Sardinia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Noragugume'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lei, Sardinia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ottana'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Illorai']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Lei,_Sardinia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Lei, Sardinia. Could you tell me the answer for that?
(c(Q15617994),P47,Q295169)
Q295169
[{'concept': 'Q15617994'}, 'P47', 'Q295169']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lei, Sardinia']
[]
SYSTEM
2
Q295595 Q294746
(c(Q15617994),P47,Q295169)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q295169']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q295169 . ?z rdf:type ontology:Q15617994 }
Silanus, Sardinia Bolotana
2
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lei, Sardinia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Lei,_Sardinia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1672892 Q295169
P17
Q15617994
USER
Which administrative territories are Lei, Sardinia or 1997 Irish Open Badminton Championships situated in ?
OR((Q295169,P17,c(Q15617994)), (Q1672892,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q295169
relation P17
action find
entity Q1672892
relation P17
type Q15617994
{'OR': [['Q295169', 'P17', {'concept': 'Q15617994'}], ['Q1672892', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q295169 property:P17 ?j } UNION { resource:Q1672892 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
1997 Irish Open Badminton Championships Lei, Sardinia
action filter_type
action union
action find
entity Lei, Sardinia
relation country
action find
entity 1997 Irish Open Badminton Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Lei, Sardinia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['1997 Irish Open Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Lei,_Sardinia property:country ?j } UNION { resource:1997_Irish_Open_Badminton_Championships property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q27
SYSTEM
Italy, Ireland
Q38 Q27
OR((Q295169,P17,c(Q15617994)), (Q1672892,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q295169
relation P17
action find
entity Q1672892
relation P17
type Q15617994
Lei , Sardinia or 1997 Irish Open Badminton Championships are situated in [ANSWERS]
{'OR': [['Q295169', 'P17', {'concept': 'Q15617994'}], ['Q1672892', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q295169 property:P17 ?j } UNION { resource:Q1672892 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Italy Ireland
Lei , Sardinia or 1997 Irish Open Badminton Championships are situated in Italy and Ireland
Italy Ireland
action filter_type
action union
action find
entity Lei, Sardinia
relation country
action find
entity 1997 Irish Open Badminton Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Lei, Sardinia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['1997 Irish Open Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Lei,_Sardinia property:country ?j } UNION { resource:1997_Irish_Open_Badminton_Championships property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Do Belarus have diplomatic relations with those ones ?
(Q184,P530,Q38) (Q184,P530,Q27)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q27']
ASK WHERE { VALUES ( ?c ) { ( resource:Q38 ) ( resource:Q27 ) } . resource:Q184 property:P530 ?c }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Ireland']
ASK WHERE { VALUES ( ?c ) { ( resource:Italy ) ( resource:Ireland ) } . resource:Belarus property:diplomatic_relation ?c }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q38) (Q184,P530,Q27)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q27']
ASK WHERE { VALUES ( ?c ) { ( resource:Q38 ) ( resource:Q27 ) } . resource:Q184 property:P530 ?c }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Ireland']
ASK WHERE { VALUES ( ?c ) { ( resource:Italy ) ( resource:Ireland ) } . resource:Belarus property:diplomatic_relation ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q295248 Q38
P17
Q15617994
USER
Is that one present in Italy ?
(Q295248,P17,Q38)
action is_in
entity Q38
action find
entity Q295248
relation P17
['Q295248', 'P17', 'Q38']
ASK WHERE { resource:Q295248 property:P17 resource:Q38 }
Macomer Italy
action is_in
entity Italy
action find
entity Macomer
relation country
['Macomer', 'country', 'Italy']
ASK WHERE { resource:Macomer property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q295248,P17,Q38)
action is_in
entity Q38
action find
entity Q295248
relation P17
[ANSWER]
['Q295248', 'P17', 'Q38']
ASK WHERE { resource:Q295248 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Macomer
relation country
['Macomer', 'country', 'Italy']
ASK WHERE { resource:Macomer property:country resource:Italy }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q508882 Q13401220
P530
Q15617994
USER
Does Italy have diplomatic associations with Hongshan District, Chifeng and Dubová ?
(Q38,P530,Q508882) (Q38,P530,Q13401220)
action is_in
entity Q38
action intersection
action find_reverse
entity Q508882
relation P530
action find_reverse
entity Q13401220
relation P530
['Q38', 'P530', 'Q508882'] ['Q38', 'P530', 'Q13401220']
ASK WHERE { resource:Q38 property:P530 resource:Q13401220 . resource:Q38 property:P530 resource:Q508882 }
Italy Hongshan District, Chifeng Dubová
action is_in
entity Italy
action intersection
action find_reverse
entity Hongshan District, Chifeng
relation diplomatic relation
action find_reverse
entity Dubová
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hongshan District, Chifeng'] ['Italy', 'diplomatic relation', 'Dubová']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Dubová . resource:Italy property:diplomatic_relation resource:Hongshan_District,_Chifeng }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q508882) (Q38,P530,Q13401220)
action is_in
entity Q38
action intersection
action find_reverse
entity Q508882
relation P530
action find_reverse
entity Q13401220
relation P530
[ANSWER]
['Q38', 'P530', 'Q508882'] ['Q38', 'P530', 'Q13401220']
ASK WHERE { resource:Q38 property:P530 resource:Q13401220 . resource:Q38 property:P530 resource:Q508882 }
No
action is_in
entity Italy
action intersection
action find_reverse
entity Hongshan District, Chifeng
relation diplomatic relation
action find_reverse
entity Dubová
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hongshan District, Chifeng'] ['Italy', 'diplomatic relation', 'Dubová']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Dubová . resource:Italy property:diplomatic_relation resource:Hongshan_District,_Chifeng }
[]