Simple Question (Direct)
Simple Question
Q20033471
P641
Q31629
USER
Which type of sport was 2016 La Flèche Wallonne a part of ?
(Q20033471,P641,c(Q31629))
action filter_type
action find
entity Q20033471
relation P641
type Q31629
['Q20033471', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?l WHERE { resource:Q20033471 property:P641 ?l . ?l rdf:type ontology:Q31629 }
2016 La Flèche Wallonne
action filter_type
action find
entity 2016 La Flèche Wallonne
relation sport
type type of sport
['2016 La Flèche Wallonne', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?l WHERE { resource:2016_La_Flèche_Wallonne property:sport ?l . ?l rdf:type ontology:type_of_sport }
[]
type of sport
Q3609
SYSTEM
road bicycle racing
Q3609
(Q20033471,P641,c(Q31629))
action filter_type
action find
entity Q20033471
relation P641
type Q31629
The [ANSWER] was 2016 La Flèche Wallonne a part of
['Q20033471', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?l WHERE { resource:Q20033471 property:P641 ?l . ?l rdf:type ontology:Q31629 }
road bicycle racing
The road bicycle racing was 2016 La Flèche Wallonne a part of
road bicycle racing
action filter_type
action find
entity 2016 La Flèche Wallonne
relation sport
type type of sport
['2016 La Flèche Wallonne', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?l WHERE { resource:2016_La_Flèche_Wallonne property:sport ?l . ?l rdf:type ontology:type_of_sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20033471
P1344
Q502895
USER
Which people participated in 2016 La Flèche Wallonne ?
(c(Q502895),P1344,Q20033471)
action filter_type
action find_reverse
entity Q20033471
relation P1344
type Q502895
[{'concept': 'Q502895'}, 'P1344', 'Q20033471']
SELECT DISTINCT ?x WHERE { ?x property:P1344 resource:Q20033471 . ?x rdf:type ontology:Q502895 }
2016 La Flèche Wallonne
action filter_type
action find_reverse
entity 2016 La Flèche Wallonne
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', '2016 La Flèche Wallonne']
SELECT DISTINCT ?x WHERE { ?x property:participant_of resource:2016_La_Flèche_Wallonne . ?x rdf:type ontology:common_name }
[]
common name
Q286183 Q444625 Q523444
SYSTEM
Alejandro Valverde, Jarlinson Pantano, Daniel Martin
Q3189071 Q921437 Q444625 Q286183 Q523444 Q15143186 Q532036
(c(Q502895),P1344,Q20033471)
action filter_type
action find_reverse
entity Q20033471
relation P1344
type Q502895
[ANSWERS] participated in 2016 La Flèche Wallonne
[{'concept': 'Q502895'}, 'P1344', 'Q20033471']
SELECT DISTINCT ?x WHERE { ?x property:P1344 resource:Q20033471 . ?x rdf:type ontology:Q502895 }
Julian Alaphilippe Carlos Betancur Jarlinson Pantano Alejandro Valverde Daniel Martin Sebastián Henao Leonardo Duque
Alejandro Valverde, Jarlinson Pantano and Daniel Martin participated in 2016 La Flèche Wallonne
Alejandro Valverde Jarlinson Pantano Daniel Martin
action filter_type
action find_reverse
entity 2016 La Flèche Wallonne
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', '2016 La Flèche Wallonne']
SELECT DISTINCT ?x WHERE { ?x property:participant_of resource:2016_La_Flèche_Wallonne . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20033471
P1444
Q223557
USER
Which physical object is the destination point for 2016 La Flèche Wallonne ?
(Q20033471,P1444,c(Q223557))
action filter_type
action find
entity Q20033471
relation P1444
type Q223557
['Q20033471', 'P1444', {'concept': 'Q223557'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q223557 . resource:Q20033471 property:P1444 ?u }
2016 La Flèche Wallonne
action filter_type
action find
entity 2016 La Flèche Wallonne
relation destination point
type physical object
['2016 La Flèche Wallonne', 'destination point', {'concept': 'physical object'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:physical_object . resource:2016_La_Flèche_Wallonne property:destination_point ?u }
[]
physical object
Q2721946
SYSTEM
Mur de Huy
Q2721946
(Q20033471,P1444,c(Q223557))
action filter_type
action find
entity Q20033471
relation P1444
type Q223557
[ANSWER] is the destination point for 2016 La Flèche Wallonne
['Q20033471', 'P1444', {'concept': 'Q223557'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q223557 . resource:Q20033471 property:P1444 ?u }
Mur de Huy
Mur de Huy is the destination point for 2016 La Flèche Wallonne
Mur de Huy
action filter_type
action find
entity 2016 La Flèche Wallonne
relation destination point
type physical object
['2016 La Flèche Wallonne', 'destination point', {'concept': 'physical object'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:physical_object . resource:2016_La_Flèche_Wallonne property:destination_point ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q523444 Q1043
P40
Q502895
USER
How many people have Daniel Martin or Carl Linnaeus as a child ?
(c(Q502895),P40,Q523444) (c(Q502895),P40,Q1043)
action count
action union
action filter_type
action find_reverse
entity Q523444
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1043
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q523444'] [{'concept': 'Q502895'}, 'P40', 'Q1043']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { ?y property:P40 resource:Q523444 . ?y rdf:type ontology:Q502895 } UNION { ?y property:P40 resource:Q1043 . ?y rdf:type ontology:Q502895 } }
Daniel Martin Carl Linnaeus
action count
action union
action filter_type
action find_reverse
entity Daniel Martin
relation child
type common name
action filter_type
action find_reverse
entity Carl Linnaeus
relation child
type common name
[{'concept': 'common name'}, 'child', 'Daniel Martin'] [{'concept': 'common name'}, 'child', 'Carl Linnaeus']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { ?y property:child resource:Daniel_Martin . ?y rdf:type ontology:common_name } UNION { ?y property:child resource:Carl_Linnaeus . ?y rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q19864840 Q1992380 Q19387900
(c(Q502895),P40,Q523444) (c(Q502895),P40,Q1043)
action count
action union
action filter_type
action find_reverse
entity Q523444
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1043
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q523444'] [{'concept': 'Q502895'}, 'P40', 'Q1043']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { ?y property:P40 resource:Q523444 . ?y rdf:type ontology:Q502895 } UNION { ?y property:P40 resource:Q1043 . ?y rdf:type ontology:Q502895 } }
Neil Martin Nils Ingemarsson Linnaeus Christina Brodersonia
3
action count
action union
action filter_type
action find_reverse
entity Daniel Martin
relation child
type common name
action filter_type
action find_reverse
entity Carl Linnaeus
relation child
type common name
[{'concept': 'common name'}, 'child', 'Daniel Martin'] [{'concept': 'common name'}, 'child', 'Carl Linnaeus']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { ?y property:child resource:Daniel_Martin . ?y rdf:type ontology:common_name } UNION { ?y property:child resource:Carl_Linnaeus . ?y rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2740289 Q20033471
P17
Q15617994
USER
Which administrative territories are 2016 La Flèche Wallonne or Poljče, Radovljica a part of ?
OR((Q20033471,P17,c(Q15617994)), (Q2740289,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20033471
relation P17
action find
entity Q2740289
relation P17
type Q15617994
{'OR': [['Q20033471', 'P17', {'concept': 'Q15617994'}], ['Q2740289', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?h property:P17 ?j . VALUES ( ?h ) { ( resource:Q20033471 ) ( resource:Q2740289 ) } } . ?j rdf:type ontology:Q15617994 }
Poljče, Radovljica 2016 La Flèche Wallonne
action filter_type
action union
action find
entity 2016 La Flèche Wallonne
relation country
action find
entity Poljče, Radovljica
relation country
type designation for an administrative territorial entity
{'OR': [['2016 La Flèche Wallonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Poljče, Radovljica', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?h property:country ?j . VALUES ( ?h ) { ( resource:2016_La_Flèche_Wallonne ) ( resource:Poljče,_Radovljica ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q215
SYSTEM
Belgium, Slovenia
Q31 Q215
OR((Q20033471,P17,c(Q15617994)), (Q2740289,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20033471
relation P17
action find
entity Q2740289
relation P17
type Q15617994
[ANSWERS] are 2016 La Flèche Wallonne or Poljče, Radovljica a part of
{'OR': [['Q20033471', 'P17', {'concept': 'Q15617994'}], ['Q2740289', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?h property:P17 ?j . VALUES ( ?h ) { ( resource:Q20033471 ) ( resource:Q2740289 ) } } . ?j rdf:type ontology:Q15617994 }
Belgium Slovenia
Belgium and Slovenia are 2016 La Flèche Wallonne or Poljče, Radovljica a part of
Belgium Slovenia
action filter_type
action union
action find
entity 2016 La Flèche Wallonne
relation country
action find
entity Poljče, Radovljica
relation country
type designation for an administrative territorial entity
{'OR': [['2016 La Flèche Wallonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Poljče, Radovljica', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?h property:country ?j . VALUES ( ?h ) { ( resource:2016_La_Flèche_Wallonne ) ( resource:Poljče,_Radovljica ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have a diplomatic relationship with that administrative territory ?
(Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q215,P530,c(Q15617994)) (Q215,P530,c(Q1048835))
['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q215', 'P530', {'concept': 'Q15617994'}] ['Q215', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q215 property:P530 ?z } UNION { resource:Q215 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Slovenia property:diplomatic_relation ?z } UNION { resource:Slovenia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q215
SYSTEM
Did you mean Slovenia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q215 property:P530 ?z } UNION { resource:Q215 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Slovenia ?
Slovenia
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Slovenia property:diplomatic_relation ?z } UNION { resource:Slovenia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Belgium. Could you tell me the answer for that?
(Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q215,P530,c(Q15617994)) (Q215,P530,c(Q1048835))
Q31
['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q215', 'P530', {'concept': 'Q15617994'}] ['Q215', 'P530', {'concept': 'Q1048835'}]
['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
5
Q32 Q408 Q38 Q183 Q347
(Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q31,P530,c(Q15617994)) (Q31,P530,c(Q1048835)) (Q215,P530,c(Q15617994)) (Q215,P530,c(Q1048835))
[ANSWER]
['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q31', 'P530', {'concept': 'Q15617994'}] ['Q31', 'P530', {'concept': 'Q1048835'}] ['Q215', 'P530', {'concept': 'Q15617994'}] ['Q215', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q19072874 property:P530 ?z } UNION { resource:Q19072874 property:P530 ?y } UNION { resource:Q215 property:P530 ?z } UNION { resource:Q215 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Luxembourg Australia Italy Germany Liechtenstein
5
['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Belgium property:diplomatic_relation ?z } UNION { resource:Belgium property:diplomatic_relation ?y } UNION { resource:Slovenia property:diplomatic_relation ?z } UNION { resource:Slovenia property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P710
Q180684
USER
What event did Belgium particiate in ?
(c(Q180684),P710,Q31)
action filter_type
action find_reverse
entity Q31
relation P710
type Q180684
[{'concept': 'Q180684'}, 'P710', 'Q31']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q31 . ?b rdf:type ontology:Q180684 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Belgium']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Belgium . ?b rdf:type ontology:conflict }
[]
conflict
Q911972
SYSTEM
Dunkirk evacuation
Q911972
(c(Q180684),P710,Q31)
action filter_type
action find_reverse
entity Q31
relation P710
type Q180684
Belgium particiated in [ANSWER]
[{'concept': 'Q180684'}, 'P710', 'Q31']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q31 . ?b rdf:type ontology:Q180684 }
Dunkirk evacuation
Belgium particiated in Dunkirk evacuation
Dunkirk evacuation
action filter_type
action find_reverse
entity Belgium
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Belgium']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Belgium . ?b rdf:type ontology:conflict }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q911972
P361
Q1190554
USER
What is that conflict a part of ?
(Q911972,P361,c(Q1190554))
action filter_type
action find
entity Q911972
relation P361
type Q1190554
['Q911972', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?t WHERE { resource:Q911972 property:P361 ?t . ?t rdf:type ontology:Q1190554 }
Dunkirk evacuation
action filter_type
action find
entity Dunkirk evacuation
relation part of
type event
['Dunkirk evacuation', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { resource:Dunkirk_evacuation property:part_of ?t . ?t rdf:type ontology:event }
[]
event
Q151340
SYSTEM
Battle of France
Q151340
(Q911972,P361,c(Q1190554))
action filter_type
action find
entity Q911972
relation P361
type Q1190554
That conflict a part of is the [ANSWER]
['Q911972', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?t WHERE { resource:Q911972 property:P361 ?t . ?t rdf:type ontology:Q1190554 }
Battle of France
That conflict a part of is the Battle of France
Battle of France
action filter_type
action find
entity Dunkirk evacuation
relation part of
type event
['Dunkirk evacuation', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { resource:Dunkirk_evacuation property:part_of ?t . ?t rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q286183
P1344
Q15091377 Q22348500
USER
How many cycling races and cycling race classes did Alejandro Valverde participate in ?
(Q286183,P1344,c(Q15091377)) (Q286183,P1344,c(Q22348500))
action count
action union
action filter_type
action find
entity Q286183
relation P1344
type Q15091377
action filter_type
action find
entity Q286183
relation P1344
type Q22348500
['Q286183', 'P1344', {'concept': 'Q15091377'}] ['Q286183', 'P1344', {'concept': 'Q22348500'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:Q15091377 ) ( ontology:Q22348500 ) } }
Alejandro Valverde
action count
action union
action filter_type
action find
entity Alejandro Valverde
relation participant of
type cycling race
action filter_type
action find
entity Alejandro Valverde
relation participant of
type cycling race class defined by the International Cycling Union
['Alejandro Valverde', 'participant of', {'concept': 'cycling race'}] ['Alejandro Valverde', 'participant of', {'concept': 'cycling race class defined by the International Cycling Union'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:cycling_race ) ( ontology:cycling_race_class_defined_by_the_International_Cycling_Union ) } }
[]
cycling race cycling race class defined by the International Cycling Union
SYSTEM
1 cycling races and 2 cycling race classes
Q33937 Q20033471 Q20071027
(Q286183,P1344,c(Q15091377)) (Q286183,P1344,c(Q22348500))
action count
action union
action filter_type
action find
entity Q286183
relation P1344
type Q15091377
action filter_type
action find
entity Q286183
relation P1344
type Q22348500
[ANSWER]
['Q286183', 'P1344', {'concept': 'Q15091377'}] ['Q286183', 'P1344', {'concept': 'Q22348500'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:Q15091377 ) ( ontology:Q22348500 ) } }
Vuelta a España 2016 La Flèche Wallonne 2016 Liège–Bastogne–Liège
1 cycling races and 2 cycling race classes
action count
action union
action filter_type
action find
entity Alejandro Valverde
relation participant of
type cycling race
action filter_type
action find
entity Alejandro Valverde
relation participant of
type cycling race class defined by the International Cycling Union
['Alejandro Valverde', 'participant of', {'concept': 'cycling race'}] ['Alejandro Valverde', 'participant of', {'concept': 'cycling race class defined by the International Cycling Union'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:cycling_race ) ( ontology:cycling_race_class_defined_by_the_International_Cycling_Union ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24834484 Q20033471
P17
Q15617994
USER
Which administrative territories are 2016 La Flèche Wallonne or Xing-Yan Expressway located in ?
OR((Q20033471,P17,c(Q15617994)), (Q24834484,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20033471
relation P17
action find
entity Q24834484
relation P17
type Q15617994
{'OR': [['Q20033471', 'P17', {'concept': 'Q15617994'}], ['Q24834484', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q20033471 property:P17 ?m } UNION { resource:Q24834484 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Xing-Yan Expressway 2016 La Flèche Wallonne
action filter_type
action union
action find
entity 2016 La Flèche Wallonne
relation country
action find
entity Xing-Yan Expressway
relation country
type designation for an administrative territorial entity
{'OR': [['2016 La Flèche Wallonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Xing-Yan Expressway', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:2016_La_Flèche_Wallonne property:country ?m } UNION { resource:Xing-Yan_Expressway property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q148
SYSTEM
Belgium, People's Republic of China
Q31 Q148
OR((Q20033471,P17,c(Q15617994)), (Q24834484,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20033471
relation P17
action find
entity Q24834484
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q20033471', 'P17', {'concept': 'Q15617994'}], ['Q24834484', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q20033471 property:P17 ?m } UNION { resource:Q24834484 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Belgium People's Republic of China
Which administrative territories are 2016 La Flèche Wallonne or Xing-Yan Expressway located in
Belgium People's Republic of China
action filter_type
action union
action find
entity 2016 La Flèche Wallonne
relation country
action find
entity Xing-Yan Expressway
relation country
type designation for an administrative territorial entity
{'OR': [['2016 La Flèche Wallonne', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Xing-Yan Expressway', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:2016_La_Flèche_Wallonne property:country ?m } UNION { resource:Xing-Yan_Expressway property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
Which administrative territories were the sources of inspiration for greater number of fictional locations than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|More/Less|Single entity type|Clarification
Q148
SYSTEM
Did you mean People's Republic of China ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean People's Republic of China ?
People's Republic of China
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Belgium. Could you tell me the answer for that?
(c(Q3895768),P941,c(Q15617994))
Q31
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
Q668
SYSTEM
India
Q668
(c(Q3895768),P941,c(Q15617994))
[ANSWER] was the sources of inspiration for greater number of fictional locations than that administrative territory
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
India
India was the sources of inspiration for greater number of fictional locations than that administrative territory
India
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q668 Q4147165 Q501674
P530
Q1048835
USER
Does that administrative territory have tactful political relations with Hoshiv and Alhama de Granada ?
(Q668,P530,Q4147165) (Q668,P530,Q501674)
action is_in
entity Q668
action intersection
action find_reverse
entity Q4147165
relation P530
action find_reverse
entity Q501674
relation P530
['Q668', 'P530', 'Q4147165'] ['Q668', 'P530', 'Q501674']
ASK WHERE { resource:Q668 property:P530 resource:Q4147165 . resource:Q668 property:P530 resource:Q501674 }
India Hoshiv Alhama de Granada
action is_in
entity India
action intersection
action find_reverse
entity Hoshiv
relation diplomatic relation
action find_reverse
entity Alhama de Granada
relation diplomatic relation
['India', 'diplomatic relation', 'Hoshiv'] ['India', 'diplomatic relation', 'Alhama de Granada']
ASK WHERE { resource:India property:diplomatic_relation resource:Hoshiv . resource:India property:diplomatic_relation resource:Alhama_de_Granada }
[]
political territorial entity
SYSTEM
NO
(Q668,P530,Q4147165) (Q668,P530,Q501674)
action is_in
entity Q668
action intersection
action find_reverse
entity Q4147165
relation P530
action find_reverse
entity Q501674
relation P530
[ANSWER]
['Q668', 'P530', 'Q4147165'] ['Q668', 'P530', 'Q501674']
ASK WHERE { resource:Q668 property:P530 resource:Q4147165 . resource:Q668 property:P530 resource:Q501674 }
No
action is_in
entity India
action intersection
action find_reverse
entity Hoshiv
relation diplomatic relation
action find_reverse
entity Alhama de Granada
relation diplomatic relation
['India', 'diplomatic relation', 'Hoshiv'] ['India', 'diplomatic relation', 'Alhama de Granada']
ASK WHERE { resource:India property:diplomatic_relation resource:Hoshiv . resource:India property:diplomatic_relation resource:Alhama_de_Granada }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q21770861 Q444625
P1346
Q31629
USER
Which types of sport were Jarlinson Pantano and Movistar 2016 decalred as a champion of ?
AND((c(Q31629),P1346,Q444625), (c(Q31629),P1346,Q21770861))
action filter_type
action intersection
action find_reverse
entity Q444625
relation P1346
action find_reverse
entity Q21770861
relation P1346
type Q31629
{'AND': [[{'concept': 'Q31629'}, 'P1346', 'Q444625'], [{'concept': 'Q31629'}, 'P1346', 'Q21770861']]}
SELECT DISTINCT ?r WHERE { ?r property:P1346 resource:Q444625 . ?r property:P1346 resource:Q21770861 . ?r rdf:type ontology:Q31629 }
Movistar 2016 Jarlinson Pantano
action filter_type
action intersection
action find_reverse
entity Jarlinson Pantano
relation winner
action find_reverse
entity Movistar 2016
relation winner
type type of sport
{'AND': [[{'concept': 'type of sport'}, 'winner', 'Jarlinson Pantano'], [{'concept': 'type of sport'}, 'winner', 'Movistar 2016']]}
SELECT DISTINCT ?r WHERE { ?r property:winner resource:Jarlinson_Pantano . ?r property:winner resource:Movistar_2016 . ?r rdf:type ontology:type_of_sport }
[]
type of sport
Q21155402 Q21155400 Q21155406
SYSTEM
2016 Tour de France, Stage 17, 2016 Tour de France, Stage 15, 2016 Tour de France, Stage 20
Q21155402 Q21155400 Q21155406
AND((c(Q31629),P1346,Q444625), (c(Q31629),P1346,Q21770861))
action filter_type
action intersection
action find_reverse
entity Q444625
relation P1346
action find_reverse
entity Q21770861
relation P1346
type Q31629
[ANSWERS]
{'AND': [[{'concept': 'Q31629'}, 'P1346', 'Q444625'], [{'concept': 'Q31629'}, 'P1346', 'Q21770861']]}
SELECT DISTINCT ?r WHERE { ?r property:P1346 resource:Q444625 . ?r property:P1346 resource:Q21770861 . ?r rdf:type ontology:Q31629 }
2016 Tour de France, Stage 17 2016 Tour de France, Stage 15 2016 Tour de France, Stage 20
2016 Tour de France, Stage 17, 2016 Tour de France, Stage 15 and 2016 Tour de France, Stage 20 were Jarlinson Pantano and Movistar 2016 decalred as a champion of
2016 Tour de France, Stage 17 2016 Tour de France, Stage 15 2016 Tour de France, Stage 20
action filter_type
action intersection
action find_reverse
entity Jarlinson Pantano
relation winner
action find_reverse
entity Movistar 2016
relation winner
type type of sport
{'AND': [[{'concept': 'type of sport'}, 'winner', 'Jarlinson Pantano'], [{'concept': 'type of sport'}, 'winner', 'Movistar 2016']]}
SELECT DISTINCT ?r WHERE { ?r property:winner resource:Jarlinson_Pantano . ?r property:winner resource:Movistar_2016 . ?r rdf:type ontology:type_of_sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10458 Q501674
P47
Q1048835
USER
Which political territories share border with Alhama de Granada or Würzburg ?
OR((Q501674,P47,c(Q1048835)), (Q10458,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q501674
relation P47
action find
entity Q10458
relation P47
type Q1048835
{'OR': [['Q501674', 'P47', {'concept': 'Q1048835'}], ['Q10458', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { ?i property:P47 ?r . VALUES ( ?i ) { ( resource:Q501674 ) ( resource:Q10458 ) } } . ?r rdf:type ontology:Q1048835 }
Würzburg Alhama de Granada
action filter_type
action union
action find
entity Alhama de Granada
relation shares border with
action find
entity Würzburg
relation shares border with
type political territorial entity
{'OR': [['Alhama de Granada', 'shares border with', {'concept': 'political territorial entity'}], ['Würzburg', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?i property:shares_border_with ?r . VALUES ( ?i ) { ( resource:Alhama_de_Granada ) ( resource:Würzburg ) } } . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q10459 Q8517 Q554253 Q1630165 Q10456 Q1631872 Q1636706 Q1647722 Q615802 Q615830
SYSTEM
Some of them are Kitzingen, Main-Tauber, Cacín, Sedella, Neustadt (Aisch)-Bad Windsheim, Jayena, Agrón, Canillas de Aceituno, Santa Cruz del Comercio, Salar
Q10469 Q1623982 Q426844 Q554253 Q8517 Q140149 Q1647757 Q10461 Q557953 Q13155 Q1631872 Q550981 Q605360 Q615830 Q1636706 Q10456 Q732206 Q615802 Q10459 Q1647722 Q1630165
OR((Q501674,P47,c(Q1048835)), (Q10458,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q501674
relation P47
action find
entity Q10458
relation P47
type Q1048835
[ANSWERS] share border with Alhama de Granada or Würzburg
{'OR': [['Q501674', 'P47', {'concept': 'Q1048835'}], ['Q10458', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { ?i property:P47 ?r . VALUES ( ?i ) { ( resource:Q501674 ) ( resource:Q10458 ) } } . ?r rdf:type ontology:Q1048835 }
Main-Spessart Cómpeta Moraleda de Zafayona Cacín Main-Tauber Zafarraya Canillas de Albaida Schweinfurt Chimeneas Alcaucín Jayena Arenas del Rey Otívar Salar Agrón Neustadt (Aisch)-Bad Windsheim Periana Santa Cruz del Comercio Kitzingen Canillas de Aceituno Sedella
Kitzingen, Main-Tauber, Cacín, Sedella, Neustadt (Aisch)-Bad Windsheim, Jayena, Agrón, Canillas de Aceituno, Santa Cruz del Comercio and Salar share border with Alhama de Granada or Würzburg
Kitzingen Main-Tauber Cacín Sedella Neustadt (Aisch)-Bad Windsheim Jayena Agrón Canillas de Aceituno Santa Cruz del Comercio Salar
action filter_type
action union
action find
entity Alhama de Granada
relation shares border with
action find
entity Würzburg
relation shares border with
type political territorial entity
{'OR': [['Alhama de Granada', 'shares border with', {'concept': 'political territorial entity'}], ['Würzburg', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?i property:shares_border_with ?r . VALUES ( ?i ) { ( resource:Alhama_de_Granada ) ( resource:Würzburg ) } } . ?r rdf:type ontology:political_territorial_entity }
[]