Simple Question (Direct)
Simple Question
Q5273598
P54
Q1194951
USER
Which national sports team is Dick van Alphen a member of ?
(Q5273598,P54,c(Q1194951))
action filter_type
action find
entity Q5273598
relation P54
type Q1194951
['Q5273598', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q5273598 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Dick van Alphen
action filter_type
action find
entity Dick van Alphen
relation member of sports team
type national sports team
['Dick van Alphen', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Dick_van_Alphen property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
national sports team
Q268208
SYSTEM
Australia national association football team
Q268208
(Q5273598,P54,c(Q1194951))
action filter_type
action find
entity Q5273598
relation P54
type Q1194951
[ANSWER] is Dick van Alphen a member of
['Q5273598', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q5273598 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Australia national association football team
Australia national association football team is Dick van Alphen a member of
Australia national association football team
action filter_type
action find
entity Dick van Alphen
relation member of sports team
type national sports team
['Dick van Alphen', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Dick_van_Alphen property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5273598
P641
Q349
USER
Which sport was that person a part of ?
(Q268208,P641,c(Q349))
action filter_type
action find
entity Q5273598
relation P641
type Q349
['Q268208', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q5273598 property:P641 ?u . ?u rdf:type ontology:Q349 }
Dick van Alphen
action filter_type
action find
entity Dick van Alphen
relation sport
type sport
['Australia national association football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Dick_van_Alphen property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q268208,P641,c(Q349))
action filter_type
action find
entity Q5273598
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q268208', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q5273598 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Dick van Alphen
relation sport
type sport
['Australia national association football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Dick_van_Alphen property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5273598
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q2736,P20,c(Q56061))
action filter_type
action find
entity Q5273598
relation P20
type Q56061
['Q2736', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q5273598 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Dick van Alphen
action filter_type
action find
entity Dick van Alphen
relation place of death
type administrative territorial entity
['association football', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Dick_van_Alphen property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q606324
SYSTEM
Hervey Bay
Q606324
(Q2736,P20,c(Q56061))
action filter_type
action find
entity Q5273598
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q2736', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q5273598 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Hervey Bay
The expiration of that person occurred in Hervey Bay
Hervey Bay
action filter_type
action find
entity Dick van Alphen
relation place of death
type administrative territorial entity
['association football', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Dick_van_Alphen property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6067079 Q5273598
P19 P27
Q15617994
USER
Which administrative territories are the birthplace of Dick van Alphen or are the countries of citizenship of Pau ?
OR((Q5273598,P19,c(Q15617994)), (Q6067079,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5273598
relation P19
action find
entity Q6067079
relation P27
type Q15617994
{'OR': [['Q5273598', 'P19', {'concept': 'Q15617994'}], ['Q6067079', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q5273598 property:P19 ?z } UNION { resource:Q6067079 property:P27 ?z } } }
Pau Dick van Alphen
action filter_type
action union
action find
entity Dick van Alphen
relation place of birth
action find
entity Pau
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dick van Alphen', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Pau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dick_van_Alphen property:place_of_birth ?z } UNION { resource:Pau property:country_of_citizenship ?z } } }
[]
designation for an administrative territorial entity
Q29 Q55
SYSTEM
Spain, Netherlands
Q29 Q55
OR((Q5273598,P19,c(Q15617994)), (Q6067079,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5273598
relation P19
action find
entity Q6067079
relation P27
type Q15617994
[ANSWERS] are the birthplace of Dick van Alphen or are the countries of citizenship of Pau
{'OR': [['Q5273598', 'P19', {'concept': 'Q15617994'}], ['Q6067079', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { { resource:Q5273598 property:P19 ?z } UNION { resource:Q6067079 property:P27 ?z } } }
Spain Netherlands
Spain and Netherlands are the birthplace of Dick van Alphen or are the countries of citizenship of Pau
Spain Netherlands
action filter_type
action union
action find
entity Dick van Alphen
relation place of birth
action find
entity Pau
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dick van Alphen', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Pau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dick_van_Alphen property:place_of_birth ?z } UNION { resource:Pau property:country_of_citizenship ?z } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q223557 Q15617994
USER
Which administrative territories are the eponym of atleast 1 french administrative divisions and physical objects ?
(c(Q15617994),P138,c(Q20667921)|c(Q223557))
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q20667921
action find_tuple_counts
relation P138
type Q15617994
type Q223557
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q20667921'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?v ) WHERE { { ?i property:P138 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q20667921 } UNION { ?i property:P138 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q223557 } } GROUP BY ?i } . FILTER ( ?v >= 1 ) }
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'type of french administrative division'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?v ) WHERE { { ?i property:named_after ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:type_of_french_administrative_division } UNION { ?i property:named_after ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:physical_object } } GROUP BY ?i } . FILTER ( ?v >= 1 ) }
[]
type of french administrative division physical object designation for an administrative territorial entity
Q12761 Q12792 Q3240
SYSTEM
Seine-Saint-Denis, Vaucluse, Bouches-du-Rhône
Q2998020 Q3240 Q12792 Q3336 Q3334 Q27495866 Q12782 Q12761
(c(Q15617994),P138,c(Q20667921)|c(Q223557))
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q20667921
action find_tuple_counts
relation P138
type Q15617994
type Q223557
value 1
[ANSWERS] are the eponym of atleast 1 french administrative divisions and physical objects
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q20667921'}, {'concept': 'Q223557'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?v ) WHERE { { ?i property:P138 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q20667921 } UNION { ?i property:P138 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q223557 } } GROUP BY ?i } . FILTER ( ?v >= 1 ) }
Corse Bouches-du-Rhône Vaucluse Corse-du-Sud Haute-Corse Corse Territoire de Belfort Seine-Saint-Denis
Seine-Saint-Denis, Vaucluse and Bouches-du-Rhône are the eponym of atleast 1 french administrative divisions and physical objects
Seine-Saint-Denis Vaucluse Bouches-du-Rhône
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type physical object
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'type of french administrative division'}, {'concept': 'physical object'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?v ) WHERE { { ?i property:named_after ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:type_of_french_administrative_division } UNION { ?i property:named_after ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:physical_object } } GROUP BY ?i } . FILTER ( ?v >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12758
P138
Q502895 Q14524493 Q15617994
USER
Which administrative territories are the eponym of greater number of people and terrains than Seine-Maritime ?
(c(Q15617994),P138,c(Q502895)|c(Q14524493))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action count
action filter_multi_types
action find
entity Q12758
relation P138
type Q502895
type Q14524493
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?r WHERE { { ?r property:P138 ?s . ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q502895 } UNION { ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q14524493 . ?r property:P138 ?s } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Q12758 property:P138 ?y . { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q14524493 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u > ?i ) }
Seine-Maritime
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find
entity Seine-Maritime
relation named after
type common name
type terrain
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'common name'}, {'concept': 'terrain'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?r WHERE { { ?r property:named_after ?s . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:common_name } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:terrain . ?r property:named_after ?s } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Seine-Maritime property:named_after ?y . { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:terrain ) ( ontology:common_name ) } } } } . FILTER ( ?u > ?i ) }
[]
common name terrain designation for an administrative territorial entity
Q739 Q750 Q928
SYSTEM
Colombia, Bolivia, Philippines
Q709 Q124000 Q21671144 Q12536 Q1090684 Q568751 Q710 Q1817784 Q7408058 Q739 Q161258 Q676543 Q12694 Q3563282 Q928 Q4336071 Q676178 Q238 Q4229407 Q621869 Q1042 Q691265 Q12580 Q683555 Q548396 Q811 Q4165945 Q2921370 Q750 Q160307 Q505607 Q6661829 Q760 Q8575586 Q1913193 Q4066675 Q599866 Q2938 Q1951 Q2528268
(c(Q15617994),P138,c(Q502895)|c(Q14524493))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q502895
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action count
action filter_multi_types
action find
entity Q12758
relation P138
type Q502895
type Q14524493
[ANSWERS] are the eponym of greater number of people and terrains than Seine-Maritime
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?r WHERE { { ?r property:P138 ?s . ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q502895 } UNION { ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q14524493 . ?r property:P138 ?s } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Q12758 property:P138 ?y . { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q14524493 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u > ?i ) }
Marshall Islands Victoria Mezhetchina Abbasid caliphate Montserrat Mont-Tonnerre Kiribati Leninkent, Makhachkala, Republic of Dagestan Sam Rayburn Independent School District Colombia Clipperton Island Sankt Thomas Puy-de-Dôme Rumi District Philippines Ordzhonikidzevskiy raion of Zaporizhzhya Viereck San Marino Komarovsky, Orenburg Oblast Georgsdorf Seychelles Mont-Terrible Lozère Vyronas Pommerby Nicaragua Sheikh Zayed City Bouches-de-l'Èbre-Montserrat Bolivia Fatimid caliphate Philippsreut Llanvaches Saint Lucia Umayyad Caliphate Chkalovsk Microdistrict Annino Lev Tolstoy Leverkusen Alberta Mont-Blanc
Colombia, Bolivia and Philippines are the eponym of greater number of people and terrains than Seine-Maritime
Colombia Bolivia Philippines
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action count
action filter_multi_types
action find
entity Seine-Maritime
relation named after
type common name
type terrain
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'common name'}, {'concept': 'terrain'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?r WHERE { { ?r property:named_after ?s . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:common_name } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:terrain . ?r property:named_after ?s } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Seine-Maritime property:named_after ?y . { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:terrain ) ( ontology:common_name ) } } } } . FILTER ( ?u > ?i ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q750
P1532
Q6979593
USER
Which national association football team plays for that administrative territory ?
(c(Q6979593),P1532,Q750)
action filter_type
action find_reverse
entity Q750
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q750']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q750 . ?f rdf:type ontology:Q6979593 }
Bolivia
action filter_type
action find_reverse
entity Bolivia
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Bolivia']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Bolivia . ?f rdf:type ontology:national_association_football_team }
[]
national association football team
Clarification for simple ques.
Q750
SYSTEM
Did you mean Bolivia ?
Q739 Q750 Q928
(c(Q6979593),P1532,Q739) (c(Q6979593),P1532,Q750) (c(Q6979593),P1532,Q928)
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', 'Q739'] [{'concept': 'Q6979593'}, 'P1532', 'Q750'] [{'concept': 'Q6979593'}, 'P1532', 'Q928']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q750 . ?f rdf:type ontology:Q6979593 }
Colombia Bolivia Philippines
Did you mean Bolivia ?
Bolivia
[{'concept': 'national association football team'}, 'country for sport', 'Colombia'] [{'concept': 'national association football team'}, 'country for sport', 'Bolivia'] [{'concept': 'national association football team'}, 'country for sport', 'Philippines']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Bolivia . ?f rdf:type ontology:national_association_football_team }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q6979593),P1532,Q750)
[{'concept': 'Q6979593'}, 'P1532', 'Q750']
[{'concept': 'national association football team'}, 'country for sport', 'Bolivia']
[]
Q891377
SYSTEM
Bolivia women's national football team
Q891377
(c(Q6979593),P1532,Q750)
action filter_type
action find_reverse
entity Q750
relation P1532
type Q6979593
And [ANSWER] plays for that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q750']
SELECT DISTINCT ?f WHERE { ?f property:P1532 resource:Q750 . ?f rdf:type ontology:Q6979593 }
Bolivia women's national football team
And Bolivia women's national football team plays for that administrative territory
Bolivia women's national football team
action filter_type
action find_reverse
entity Bolivia
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Bolivia']
SELECT DISTINCT ?f WHERE { ?f property:country_for_sport resource:Bolivia . ?f rdf:type ontology:national_association_football_team }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q891377 Q750 Q15255355
P1532
Q15617994
USER
Does that national association football team plays for Bolivia and Little Ultrakova ?
(Q891377,P1532,Q750) (Q891377,P1532,Q15255355)
action is_in
entity Q891377
action intersection
action find_reverse
entity Q750
relation P1532
action find_reverse
entity Q15255355
relation P1532
['Q891377', 'P1532', 'Q750'] ['Q891377', 'P1532', 'Q15255355']
ASK WHERE { resource:Q891377 property:P1532 resource:Q750 . resource:Q891377 property:P1532 resource:Q15255355 }
Bolivia women's national football team Bolivia Little Ultrakova
action is_in
entity Bolivia women's national football team
action intersection
action find_reverse
entity Bolivia
relation country for sport
action find_reverse
entity Little Ultrakova
relation country for sport
["Bolivia women's national football team", 'country for sport', 'Bolivia'] ["Bolivia women's national football team", 'country for sport', 'Little Ultrakova']
ASK WHERE { resource:Bolivia_women's_national_football_team property:country_for_sport resource:Bolivia . resource:Bolivia_women's_national_football_team property:country_for_sport resource:Little_Ultrakova }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q891377,P1532,Q750) (Q891377,P1532,Q15255355)
action is_in
entity Q891377
action intersection
action find_reverse
entity Q750
relation P1532
action find_reverse
entity Q15255355
relation P1532
[ANSWER]
['Q891377', 'P1532', 'Q750'] ['Q891377', 'P1532', 'Q15255355']
ASK WHERE { resource:Q891377 property:P1532 resource:Q750 . resource:Q891377 property:P1532 resource:Q15255355 }
YES and NO respectively
action is_in
entity Bolivia women's national football team
action intersection
action find_reverse
entity Bolivia
relation country for sport
action find_reverse
entity Little Ultrakova
relation country for sport
["Bolivia women's national football team", 'country for sport', 'Bolivia'] ["Bolivia women's national football team", 'country for sport', 'Little Ultrakova']
ASK WHERE { resource:Bolivia_women's_national_football_team property:country_for_sport resource:Bolivia . resource:Bolivia_women's_national_football_team property:country_for_sport resource:Little_Ultrakova }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories have adopted around 2 holidays or people as patron saint ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 2
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?q } }
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?q } }
[]
holiday common name designation for an administrative territorial entity
Q25198 Q286808 Q38
SYSTEM
Olgiate Olona, Fiavè, Italy
Q25198 Q286808 Q38
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 2
[ANSWERS] have adopted around 2 holidays or people as patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?q } }
Olgiate Olona Fiavè Italy
Olgiate Olona, Fiavè and Italy have adopted around 2 holidays or people as patron saint
Olgiate Olona Fiavè Italy
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?q } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25198
P921
Q571
USER
Which book has that administrative territory as its principal topic ?
(c(Q571),P921,Q25198)
action filter_type
action find_reverse
entity Q25198
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q25198']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q25198 . ?n rdf:type ontology:Q571 }
Olgiate Olona
action filter_type
action find_reverse
entity Olgiate Olona
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Olgiate Olona']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:Olgiate_Olona . ?n rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q25198 Q286808 Q38
(c(Q571),P921,Q25198) (c(Q571),P921,Q286808) (c(Q571),P921,Q38)
[ANSWER]
[{'concept': 'Q571'}, 'P921', 'Q25198'] [{'concept': 'Q571'}, 'P921', 'Q286808'] [{'concept': 'Q571'}, 'P921', 'Q38']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q25198 . ?n rdf:type ontology:Q571 }
Olgiate Olona Fiavè Italy
Did you mean Italy ?
Italy
[{'concept': 'book'}, 'main subject', 'Olgiate Olona'] [{'concept': 'book'}, 'main subject', 'Fiavè'] [{'concept': 'book'}, 'main subject', 'Italy']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:Olgiate_Olona . ?n rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
No, I meant Olgiate Olona. Could you tell me the answer for that?
(c(Q571),P921,Q25198)
Q25198
[{'concept': 'Q571'}, 'P921', 'Q25198']
[{'concept': 'book'}, 'main subject', 'Olgiate Olona']
[]
Q22154116
SYSTEM
Olgiate Olona e la sua pieve
Q22154116
(c(Q571),P921,Q25198)
action filter_type
action find_reverse
entity Q25198
relation P921
type Q571
[ANSWER] has that administrative territory as its principal topic
[{'concept': 'Q571'}, 'P921', 'Q25198']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q25198 . ?n rdf:type ontology:Q571 }
Olgiate Olona e la sua pieve
Olgiate Olona e la sua pieve has that administrative territory as its principal topic
Olgiate Olona e la sua pieve
action filter_type
action find_reverse
entity Olgiate Olona
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Olgiate Olona']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:Olgiate_Olona . ?n rdf:type ontology:book }
[]