Simple Question (Direct)
Simple Question
Q962537
P119
Q43229
USER
Which organization is the resting place of Éva Földes ?
(Q962537,P119,c(Q43229))
action filter_type
action find
entity Q962537
relation P119
type Q43229
['Q962537', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?j WHERE { resource:Q962537 property:P119 ?j . ?j rdf:type ontology:Q43229 }
Éva Földes
action filter_type
action find
entity Éva Földes
relation place of burial
type organization
['Éva Földes', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?j WHERE { resource:Éva_Földes property:place_of_burial ?j . ?j rdf:type ontology:organization }
[]
organization
Q996499
SYSTEM
Farkasréti Cemetery
Q996499
(Q962537,P119,c(Q43229))
action filter_type
action find
entity Q962537
relation P119
type Q43229
The [ANSWER] is the resting place of Éva Földes
['Q962537', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?j WHERE { resource:Q962537 property:P119 ?j . ?j rdf:type ontology:Q43229 }
Farkasréti Cemetery
The Farkasréti Cemetery is the resting place of Éva Földes
Farkasréti Cemetery
action filter_type
action find
entity Éva Földes
relation place of burial
type organization
['Éva Földes', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?j WHERE { resource:Éva_Földes property:place_of_burial ?j . ?j rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q996499
P17
Q15617994
USER
Which administrative territory is that organization situated in ?
(Q996499,P17,c(Q15617994))
action filter_type
action find
entity Q996499
relation P17
type Q15617994
['Q996499', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q996499 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Farkasréti Cemetery
action filter_type
action find
entity Farkasréti Cemetery
relation country
type designation for an administrative territorial entity
['Farkasréti Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Farkasréti_Cemetery property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q996499,P17,c(Q15617994))
action filter_type
action find
entity Q996499
relation P17
type Q15617994
That organization is situated in [ANSWER]
['Q996499', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q996499 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Hungary
That organization is situated in Hungary
Hungary
action filter_type
action find
entity Farkasréti Cemetery
relation country
type designation for an administrative territorial entity
['Farkasréti Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Farkasréti_Cemetery property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q39170 Q28
P47
Q15617994
USER
Which administrative territories are bordered by Hungary or Cocquio-Trevisago ?
OR((Q28,P47,c(Q15617994)), (Q39170,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q28
relation P47
action find
entity Q39170
relation P47
type Q15617994
{'OR': [['Q28', 'P47', {'concept': 'Q15617994'}], ['Q39170', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?s ) { ( resource:Q28 ) ( resource:Q39170 ) } . ?s property:P47 ?m } . ?m rdf:type ontology:Q15617994 }
Cocquio-Trevisago Hungary
action filter_type
action union
action find
entity Hungary
relation shares border with
action find
entity Cocquio-Trevisago
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Cocquio-Trevisago', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?s ) { ( resource:Hungary ) ( resource:Cocquio-Trevisago ) } . ?s property:shares_border_with ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39910 Q403 Q39922 Q40175 Q215 Q218 Q224 Q214 Q39627 Q39039
SYSTEM
Some of them are Azzio, Serbia, Besozzo, Gavirate, Slovenia, Romania, Croatia, Slovakia, Cuvio, Gemonio
Q212 Q224 Q214 Q215 Q218 Q39922 Q39910 Q40175 Q39512 Q403 Q39039 Q39627
OR((Q28,P47,c(Q15617994)), (Q39170,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q28
relation P47
action find
entity Q39170
relation P47
type Q15617994
[ANSWERS] are bordered by Hungary or Cocquio-Trevisago
{'OR': [['Q28', 'P47', {'concept': 'Q15617994'}], ['Q39170', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?s ) { ( resource:Q28 ) ( resource:Q39170 ) } . ?s property:P47 ?m } . ?m rdf:type ontology:Q15617994 }
Ukraine Croatia Slovakia Slovenia Romania Besozzo Azzio Gavirate Orino Serbia Gemonio Cuvio
Azzio, Serbia, Besozzo, Gavirate, Slovenia, Romania, Croatia, Slovakia, Cuvio and Gemonio are bordered by Hungary or Cocquio-Trevisago
Azzio Serbia Besozzo Gavirate Slovenia Romania Croatia Slovakia Cuvio Gemonio
action filter_type
action union
action find
entity Hungary
relation shares border with
action find
entity Cocquio-Trevisago
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Cocquio-Trevisago', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?s ) { ( resource:Hungary ) ( resource:Cocquio-Trevisago ) } . ?s property:shares_border_with ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40175
P1427
Q22348500
USER
Which cycling race class has that administrative territory as the start location ?
(c(Q22348500),P1427,Q40175)
action filter_type
action find_reverse
entity Q40175
relation P1427
type Q22348500
[{'concept': 'Q22348500'}, 'P1427', 'Q40175']
SELECT DISTINCT ?m WHERE { ?m property:P1427 resource:Q40175 . ?m rdf:type ontology:Q22348500 }
Gavirate
action filter_type
action find_reverse
entity Gavirate
relation start point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Gavirate']
SELECT DISTINCT ?m WHERE { ?m property:start_point resource:Gavirate . ?m rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
cycling race class defined by the International Cycling Union
Clarification for simple ques.
Q39039
SYSTEM
Did you mean Gemonio ?
Q39910 Q403 Q39922 Q40175 Q215 Q218 Q224 Q214 Q39627 Q39039
(c(Q22348500),P1427,Q39910) (c(Q22348500),P1427,Q403) (c(Q22348500),P1427,Q39922) (c(Q22348500),P1427,Q40175) (c(Q22348500),P1427,Q215) (c(Q22348500),P1427,Q218) (c(Q22348500),P1427,Q224) (c(Q22348500),P1427,Q214) (c(Q22348500),P1427,Q39627) (c(Q22348500),P1427,Q39039)
[ANSWER]
[{'concept': 'Q22348500'}, 'P1427', 'Q39910'] [{'concept': 'Q22348500'}, 'P1427', 'Q403'] [{'concept': 'Q22348500'}, 'P1427', 'Q39922'] [{'concept': 'Q22348500'}, 'P1427', 'Q40175'] [{'concept': 'Q22348500'}, 'P1427', 'Q215'] [{'concept': 'Q22348500'}, 'P1427', 'Q218'] [{'concept': 'Q22348500'}, 'P1427', 'Q224'] [{'concept': 'Q22348500'}, 'P1427', 'Q214'] [{'concept': 'Q22348500'}, 'P1427', 'Q39627'] [{'concept': 'Q22348500'}, 'P1427', 'Q39039']
SELECT DISTINCT ?m WHERE { ?m property:P1427 resource:Q40175 . ?m rdf:type ontology:Q22348500 }
Azzio Serbia Besozzo Gavirate Slovenia Romania Croatia Slovakia Cuvio Gemonio
Did you mean Gemonio ?
Gemonio
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Azzio'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Serbia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Besozzo'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Gavirate'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Slovenia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Romania'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Croatia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Slovakia'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Cuvio'] [{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Gemonio']
SELECT DISTINCT ?m WHERE { ?m property:start_point resource:Gavirate . ?m rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Simple Question (Coreferenced)
USER
No, I meant Gavirate. Could you tell me the answer for that?
(c(Q22348500),P1427,Q40175)
Q40175
[{'concept': 'Q22348500'}, 'P1427', 'Q40175']
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Gavirate']
[]
Q23306987
SYSTEM
2016 Trofeo Alfredo Binda-Comune di Cittiglio
Q23306987
(c(Q22348500),P1427,Q40175)
action filter_type
action find_reverse
entity Q40175
relation P1427
type Q22348500
[ANSWER] has that administrative territory as the start location
[{'concept': 'Q22348500'}, 'P1427', 'Q40175']
SELECT DISTINCT ?m WHERE { ?m property:P1427 resource:Q40175 . ?m rdf:type ontology:Q22348500 }
2016 Trofeo Alfredo Binda-Comune di Cittiglio
2016 Trofeo Alfredo Binda-Comune di Cittiglio has that administrative territory as the start location
2016 Trofeo Alfredo Binda-Comune di Cittiglio
action filter_type
action find_reverse
entity Gavirate
relation start point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Gavirate']
SELECT DISTINCT ?m WHERE { ?m property:start_point resource:Gavirate . ?m rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25171 Q40175
P47
Q15617994
USER
Which administrative territories have an adjacent border with Gavirate or Pezzana ?
OR((c(Q15617994),P47,Q40175), (c(Q15617994),P47,Q25171))
action filter_type
action union
action find_reverse
entity Q40175
relation P47
action find_reverse
entity Q25171
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q40175'], [{'concept': 'Q15617994'}, 'P47', 'Q25171']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P47 resource:Q40175 } UNION { ?t property:P47 resource:Q25171 } } . ?t rdf:type ontology:Q15617994 }
Pezzana Gavirate
action filter_type
action union
action find_reverse
entity Gavirate
relation shares border with
action find_reverse
entity Pezzana
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gavirate'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Pezzana']]}
SELECT DISTINCT ?t WHERE { { { ?t property:shares_border_with resource:Gavirate } UNION { ?t property:shares_border_with resource:Pezzana } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q40679 Q39627 Q25176 Q41003 Q39508 Q39822 Q20095 Q24937 Q25211 Q40863
SYSTEM
Some of them are Rosasco, Cuvio, Prarolo, Palestro, Casciago, Bardello, Barasso, Caresana, Stroppiana, Biandronno
Q39508 Q24937 Q40679 Q40863 Q39922 Q25211 Q20095 Q39028 Q24858 Q41003 Q25176 Q39170 Q39627 Q39822
OR((c(Q15617994),P47,Q40175), (c(Q15617994),P47,Q25171))
action filter_type
action union
action find_reverse
entity Q40175
relation P47
action find_reverse
entity Q25171
relation P47
type Q15617994
[ANSWERS] have an adjacent border with Gavirate or Pezzana
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q40175'], [{'concept': 'Q15617994'}, 'P47', 'Q25171']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P47 resource:Q40175 } UNION { ?t property:P47 resource:Q25171 } } . ?t rdf:type ontology:Q15617994 }
Casciago Caresana Rosasco Biandronno Besozzo Stroppiana Barasso Comerio Asigliano Vercellese Palestro Prarolo Cocquio-Trevisago Cuvio Bardello
Rosasco, Cuvio, Prarolo, Palestro, Casciago, Bardello, Barasso, Caresana, Stroppiana and Biandronno have an adjacent border with Gavirate or Pezzana
Rosasco Cuvio Prarolo Palestro Casciago Bardello Barasso Caresana Stroppiana Biandronno
action filter_type
action union
action find_reverse
entity Gavirate
relation shares border with
action find_reverse
entity Pezzana
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Gavirate'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Pezzana']]}
SELECT DISTINCT ?t WHERE { { { ?t property:shares_border_with resource:Gavirate } UNION { ?t property:shares_border_with resource:Pezzana } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q25171 Q12729
P19
Q502895
USER
How many people have birthplace at Pezzana or Urgell ?
(c(Q502895),P19,Q25171) (c(Q502895),P19,Q12729)
action count
action union
action filter_type
action find_reverse
entity Q25171
relation P19
type Q502895
action filter_type
action find_reverse
entity Q12729
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q25171'] [{'concept': 'Q502895'}, 'P19', 'Q12729']
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?o ) { ( resource:Q25171 ) ( resource:Q12729 ) } . ?e property:P19 ?o }
Pezzana Urgell
action count
action union
action filter_type
action find_reverse
entity Pezzana
relation place of birth
type common name
action filter_type
action find_reverse
entity Urgell
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Pezzana'] [{'concept': 'common name'}, 'place of birth', 'Urgell']
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?o ) { ( resource:Pezzana ) ( resource:Urgell ) } . ?e property:place_of_birth ?o }
[]
common name
SYSTEM
8
Q3665443 Q3604362 Q3107224 Q1044924 Q16012246 Q67971 Q19997866 Q18223376
(c(Q502895),P19,Q25171) (c(Q502895),P19,Q12729)
action count
action union
action filter_type
action find_reverse
entity Q25171
relation P19
type Q502895
action filter_type
action find_reverse
entity Q12729
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q25171'] [{'concept': 'Q502895'}, 'P19', 'Q12729']
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?o ) { ( resource:Q25171 ) ( resource:Q12729 ) } . ?e property:P19 ?o }
Cesare Greppi Achille Dellarole Giovanni Greppi Giovanni Barale Luigi Gilardi Oreste Barale Antoni Marquès Giuseppe Ferraris
8
action count
action union
action filter_type
action find_reverse
entity Pezzana
relation place of birth
type common name
action filter_type
action find_reverse
entity Urgell
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Pezzana'] [{'concept': 'common name'}, 'place of birth', 'Urgell']
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?o ) { ( resource:Pezzana ) ( resource:Urgell ) } . ?e property:place_of_birth ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20095
P417
Q502895
USER
Which person is the patron saint of Barasso ?
(Q20095,P417,c(Q502895))
action filter_type
action find
entity Q20095
relation P417
type Q502895
['Q20095', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q20095 property:P417 ?q }
Barasso
action filter_type
action find
entity Barasso
relation patron saint
type common name
['Barasso', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Barasso property:patron_saint ?q }
[]
common name
Q133704
SYSTEM
Martin of Tours
Q133704
(Q20095,P417,c(Q502895))
action filter_type
action find
entity Q20095
relation P417
type Q502895
[ANSWER] is the patron saint of Barasso
['Q20095', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q20095 property:P417 ?q }
Martin of Tours
Martin of Tours is the patron saint of Barasso
Martin of Tours
action filter_type
action find
entity Barasso
relation patron saint
type common name
['Barasso', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Barasso property:patron_saint ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q20095
P47
Q15617994
USER
How many administrative territories share the border with Barasso ?
(Q20095,P47,c(Q15617994))
action count
action filter_type
action find
entity Q20095
relation P47
type Q15617994
['Q20095', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q20095 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Barasso
action count
action filter_type
action find
entity Barasso
relation shares border with
type designation for an administrative territorial entity
['Barasso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Barasso property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
Q39508 Q39505 Q40175 Q39028 Q39627 Q40727
(Q20095,P47,c(Q15617994))
action count
action filter_type
action find
entity Q20095
relation P47
type Q15617994
[ANSWER]
['Q20095', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q20095 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Casciago Castello Cabiaglio Gavirate Comerio Cuvio Luvinate
6
action count
action filter_type
action find
entity Barasso
relation shares border with
type designation for an administrative territorial entity
['Barasso', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Barasso property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q224
P17
Q57305 Q8513
USER
How many trade fairs and databases are located in Croatia ?
(c(Q57305),P17,Q224) (c(Q8513),P17,Q224)
action count
action union
action filter_type
action find_reverse
entity Q224
relation P17
type Q57305
action filter_type
action find_reverse
entity Q224
relation P17
type Q8513
[{'concept': 'Q57305'}, 'P17', 'Q224'] [{'concept': 'Q8513'}, 'P17', 'Q224']
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { VALUES ( ?u ) { ( ontology:Q57305 ) ( ontology:Q8513 ) } . ?b rdf:type ?u }
Croatia
action count
action union
action filter_type
action find_reverse
entity Croatia
relation country
type trade fair
action filter_type
action find_reverse
entity Croatia
relation country
type database
[{'concept': 'trade fair'}, 'country', 'Croatia'] [{'concept': 'database'}, 'country', 'Croatia']
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { VALUES ( ?u ) { ( ontology:trade_fair ) ( ontology:database ) } . ?b rdf:type ?u }
[]
trade fair database
SYSTEM
1 trade fairs and 1 databases
Q23371570 Q5187033
(c(Q57305),P17,Q224) (c(Q8513),P17,Q224)
action count
action union
action filter_type
action find_reverse
entity Q224
relation P17
type Q57305
action filter_type
action find_reverse
entity Q224
relation P17
type Q8513
[ANSWER]
[{'concept': 'Q57305'}, 'P17', 'Q224'] [{'concept': 'Q8513'}, 'P17', 'Q224']
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { VALUES ( ?u ) { ( ontology:Q57305 ) ( ontology:Q8513 ) } . ?b rdf:type ?u }
Who is Who in Croatian Science Croatia Boat Show
1 trade fairs and 1 databases
action count
action union
action filter_type
action find_reverse
entity Croatia
relation country
type trade fair
action filter_type
action find_reverse
entity Croatia
relation country
type database
[{'concept': 'trade fair'}, 'country', 'Croatia'] [{'concept': 'database'}, 'country', 'Croatia']
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { VALUES ( ?u ) { ( ontology:trade_fair ) ( ontology:database ) } . ?b rdf:type ?u }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16 Q214
P27
Q502895
USER
Which people are a native of Slovakia and Canada ?
AND((c(Q502895),P27,Q214), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q214
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q214'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q214 . ?q property:P27 resource:Q16 . ?q rdf:type ontology:Q502895 }
Canada Slovakia
action filter_type
action intersection
action find_reverse
entity Slovakia
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Slovakia'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Slovakia . ?q property:country_of_citizenship resource:Canada . ?q rdf:type ontology:common_name }
[]
common name
Q440237
SYSTEM
Stan Mikita
Q440237
AND((c(Q502895),P27,Q214), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q214
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
[ANSWER] is a native of Slovakia and Canada
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q214'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q214 . ?q property:P27 resource:Q16 . ?q rdf:type ontology:Q502895 }
Stan Mikita
Stan Mikita is a native of Slovakia and Canada
Stan Mikita
action filter_type
action intersection
action find_reverse
entity Slovakia
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Slovakia'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Slovakia . ?q property:country_of_citizenship resource:Canada . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P1001
Q1292279
USER
Which political borders have control over the jurisdiction of that political territory ?
(c(Q1292279),P1001,Q440237)
action filter_type
action find_reverse
entity Q16
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q440237']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q16 . ?e rdf:type ontology:Q1292279 }
Canada
action filter_type
action find_reverse
entity Canada
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Stan Mikita']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Canada . ?e rdf:type ontology:political_border }
[]
political border
Q3089046 Q16025014 Q119515
SYSTEM
Canada–France Maritime Boundary Case, Canada–Denmark border, Canada–United States border
Q3089046 Q16025014 Q119515
(c(Q1292279),P1001,Q440237)
action filter_type
action find_reverse
entity Q16
relation P1001
type Q1292279
[ANSWERS] have control over the jurisdiction of that political territory
[{'concept': 'Q1292279'}, 'P1001', 'Q440237']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q16 . ?e rdf:type ontology:Q1292279 }
Canada–France Maritime Boundary Case Canada–Denmark border Canada–United States border
Canada–France Maritime Boundary Case, Canada–Denmark border and Canada–United States border have control over the jurisdiction of that political territory
Canada–France Maritime Boundary Case Canada–Denmark border Canada–United States border
action filter_type
action find_reverse
entity Canada
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Stan Mikita']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Canada . ?e rdf:type ontology:political_border }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q34
P122
Q15617994 Q12737077 Q15617994
USER
Which administrative territories have more number of administrative territories and occupations as government than Sweden ?
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q34
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?f WHERE { { ?f property:P122 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q12737077 } UNION { ?f property:P122 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?f } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q34 property:P122 ?p . { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } } } } }
Sweden
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Sweden
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?f WHERE { { ?f property:basic_form_of_government ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:occupation } UNION { ?f property:basic_form_of_government ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Sweden property:basic_form_of_government ?p . { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } } } } }
[]
designation for an administrative territorial entity occupation designation for an administrative territorial entity
Q889 Q228 Q541991
SYSTEM
Afghanistan, Andorra, Hummelfeld
Q541991 Q889 Q689837 Q815731 Q228 Q1483510
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q34
relation P122
type Q15617994
type Q12737077
[ANSWERS] have more number of administrative territories and occupations as government than Sweden
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?f WHERE { { ?f property:P122 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q12737077 } UNION { ?f property:P122 ?g . ?f rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?f } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q34 property:P122 ?p . { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } } } } }
Hummelfeld Afghanistan Spanish Sahara Principality of Bulgaria Andorra Principality of Wales
Afghanistan, Andorra and Hummelfeld have more number of administrative territories and occupations as government than Sweden
Afghanistan Andorra Hummelfeld
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Sweden
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?f WHERE { { ?f property:basic_form_of_government ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:occupation } UNION { ?f property:basic_form_of_government ?g . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } . FILTER ( ?i > ?w ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Sweden property:basic_form_of_government ?p . { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q33
P122
Q15617994 Q12737077 Q15617994
USER
And what about Finland?
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q33
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Q33 property:P122 ?m . { { ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?k > ?e ) }
Finland
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Finland
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ?h . VALUES ( ?h ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Finland property:basic_form_of_government ?m . { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?k > ?e ) }
[]
designation for an administrative territorial entity occupation designation for an administrative territorial entity
Q889 Q228 Q541991
SYSTEM
Afghanistan, Andorra, Hummelfeld
Q541991 Q889 Q689837 Q815731 Q228 Q1483510
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q33
relation P122
type Q15617994
type Q12737077
[ANSWERS]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Q33 property:P122 ?m . { { ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?k > ?e ) }
Hummelfeld Afghanistan Spanish Sahara Principality of Bulgaria Andorra Principality of Wales
Afghanistan Andorra Hummelfeld
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Finland
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ?h . VALUES ( ?h ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Finland property:basic_form_of_government ?m . { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?k > ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories have adopted exactly 2 holidays or people as their patron saint ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action equal
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?d ) WHERE { { ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1445650 . ?e property:P417 ?x } UNION { ?e property:P417 ?x . ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q502895 } } GROUP BY ?e } . FILTER ( ?d = 2 ) }
action equal
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?d ) WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:holiday . ?e property:patron_saint ?x } UNION { ?e property:patron_saint ?x . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:common_name } } GROUP BY ?e } . FILTER ( ?d = 2 ) }
[]
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 equal
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 exactly 2 holidays or people as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?d ) WHERE { { ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1445650 . ?e property:P417 ?x } UNION { ?e property:P417 ?x . ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q502895 } } GROUP BY ?e } . FILTER ( ?d = 2 ) }
Olgiate Olona Fiavè Italy
Olgiate Olona, Fiavè and Italy have adopted exactly 2 holidays or people as their patron saint
Olgiate Olona Fiavè Italy
action equal
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?d ) WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:holiday . ?e property:patron_saint ?x } UNION { ?e property:patron_saint ?x . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:common_name } } GROUP BY ?e } . FILTER ( ?d = 2 ) }
[]