Simple Question (Direct)
Simple Question
Q172157
P1376
Q7275
USER
Which states have Winchester have their center of administration ?
(Q172157,P1376,c(Q7275))
action filter_type
action find
entity Q172157
relation P1376
type Q7275
['Q172157', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q172157 property:P1376 ?r . ?r rdf:type ontology:Q7275 }
Winchester
action filter_type
action find
entity Winchester
relation capital of
type state
['Winchester', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Winchester property:capital_of ?r . ?r rdf:type ontology:state }
[]
state
Q105313 Q179876
SYSTEM
Kingdom of Wessex, Kingdom of England
Q105313 Q179876
(Q172157,P1376,c(Q7275))
action filter_type
action find
entity Q172157
relation P1376
type Q7275
[ANSWERS] have Winchester have their center of administration
['Q172157', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q172157 property:P1376 ?r . ?r rdf:type ontology:Q7275 }
Kingdom of Wessex Kingdom of England
Kingdom of Wessex and Kingdom of England have Winchester have their center of administration
Kingdom of Wessex Kingdom of England
action filter_type
action find
entity Winchester
relation capital of
type state
['Winchester', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Winchester property:capital_of ?r . ?r rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q105313 Q179876
P710
Q1190554
USER
Which events were Kingdom of Wessex and Kingdom of England a participant of ?
(c(Q1190554),P710,Q105313) (c(Q1190554),P710,Q179876)
action union
action filter_type
action find_reverse
entity Q105313
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q179876
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q105313'] [{'concept': 'Q1190554'}, 'P710', 'Q179876']
SELECT DISTINCT ?k WHERE { ?k property:P710 ?s . VALUES ( ?s ) { ( resource:Q105313 ) ( resource:Q179876 ) } }
Kingdom of Wessex Kingdom of England
action union
action filter_type
action find_reverse
entity Kingdom of Wessex
relation participant
type event
action filter_type
action find_reverse
entity Kingdom of England
relation participant
type event
[{'concept': 'event'}, 'participant', 'Kingdom of Wessex'] [{'concept': 'event'}, 'participant', 'Kingdom of England']
SELECT DISTINCT ?k WHERE { ?k property:participant ?s . VALUES ( ?s ) { ( resource:Kingdom_of_Wessex ) ( resource:Kingdom_of_England ) } }
[]
event
Q51654 Q830626 Q154635
SYSTEM
Second Crusade, Battle of Bouvines, Battle of Blenheim
Q2237365 Q2065046 Q1939977 Q1429157 Q1992574 Q4870466 Q4870465 Q940959 Q940026 Q2888317 Q51654 Q1785755 Q154635 Q815148 Q1516439 Q1392 Q830626 Q5036985 Q611827 Q2246615 Q3195891 Q1113659 Q1669489 Q5036988 Q188495 Q201692 Q161325 Q1248605 Q2887879 Q4870526 Q2575960 Q4871519 Q1855461 Q16145135 Q648535 Q1704268 Q150701
(c(Q1190554),P710,Q105313) (c(Q1190554),P710,Q179876)
action union
action filter_type
action find_reverse
entity Q105313
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q179876
relation P710
type Q1190554
[ANSWERS] were Kingdom of Wessex and Kingdom of England a participant of
[{'concept': 'Q1190554'}, 'P710', 'Q105313'] [{'concept': 'Q1190554'}, 'P710', 'Q179876']
SELECT DISTINCT ?k WHERE { ?k property:P710 ?s . VALUES ( ?s ) { ( resource:Q105313 ) ( resource:Q179876 ) } }
Battle of Ashdown Battle of Reading Battle of Ellandun Battle of Deorham Battle of Basing Battle of Beran Byrig Battle of Bensington Battle of Englefield Battle of Arsuf Battle of Clitheroe Second Crusade Battle of Baugé Battle of Blenheim Siege of Harfleur Battle of Bremule Battle of Nieuwpoort Battle of Bouvines Capture of Berwick Battle of Blanchetaque Battle of Brunanburh Battle of Alnwick Battle of Fulford Battle of Taillebourg Capture of Berwick Battle of Agincourt Battle of Poitiers Battle of Ramillies Battle of Beachy Head Battle of Ardres Battle of Boroughmuir Battle of Carham Battle of La Rochelle Battle of Lincoln Battle of El Albujón Battle of Patay Battle of Assandun War of the Spanish Succession
Second Crusade, Battle of Bouvines and Battle of Blenheim were Kingdom of Wessex and Kingdom of England a participant of
Second Crusade Battle of Bouvines Battle of Blenheim
action union
action filter_type
action find_reverse
entity Kingdom of Wessex
relation participant
type event
action filter_type
action find_reverse
entity Kingdom of England
relation participant
type event
[{'concept': 'event'}, 'participant', 'Kingdom of Wessex'] [{'concept': 'event'}, 'participant', 'Kingdom of England']
SELECT DISTINCT ?k WHERE { ?k property:participant ?s . VALUES ( ?s ) { ( resource:Kingdom_of_Wessex ) ( resource:Kingdom_of_England ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q105313
P30
Q2221906
USER
Which geographic location is that state situated in ?
(Q105313,P30,c(Q2221906))
action filter_type
action find
entity Q105313
relation P30
type Q2221906
['Q105313', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q105313 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Kingdom of Wessex
action filter_type
action find
entity Kingdom of Wessex
relation continent
type geographic location
['Kingdom of Wessex', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Kingdom_of_Wessex property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q105313
SYSTEM
Did you mean Kingdom of Wessex ?
Q51654 Q830626 Q154635
(Q51654,P30,c(Q2221906)) (Q830626,P30,c(Q2221906)) (Q154635,P30,c(Q2221906))
[ANSWER]
['Q51654', 'P30', {'concept': 'Q2221906'}] ['Q830626', 'P30', {'concept': 'Q2221906'}] ['Q154635', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q105313 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Second Crusade Battle of Bouvines Battle of Blenheim
Did you mean Kingdom of Wessex ?
Kingdom of Wessex
['Second Crusade', 'continent', {'concept': 'geographic location'}] ['Battle of Bouvines', 'continent', {'concept': 'geographic location'}] ['Battle of Blenheim', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Kingdom_of_Wessex property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
Yes
(Q105313,P30,c(Q2221906))
['Q105313', 'P30', {'concept': 'Q2221906'}]
['Kingdom of Wessex', 'continent', {'concept': 'geographic location'}]
[]
Q46
SYSTEM
Europe
Q46
(Q105313,P30,c(Q2221906))
action filter_type
action find
entity Q105313
relation P30
type Q2221906
That state is situated in [ANSWER]
['Q105313', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q105313 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Europe
That state is situated in Europe
Europe
action filter_type
action find
entity Kingdom of Wessex
relation continent
type geographic location
['Kingdom of Wessex', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Kingdom_of_Wessex property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q1190554 Q15619164 Q151885
USER
Which events are max number of abstract beings or concepts a portion of ?
(c(Q15619164)|c(Q151885),P361,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q151885
[[{'concept': 'Q15619164'}, {'concept': 'Q151885'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?t ) { ( ontology:Q15619164 ) ( ontology:Q151885 ) } . ?c rdf:type ?t } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?z WHERE { VALUES ( ?h ) { ( ontology:Q15619164 ) ( ontology:Q151885 ) } . ?l rdf:type ?h } GROUP BY ?z } . FILTER ( ?q = ?j ) }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action find_reverse_tuple_counts
relation part of
type event
type concept
[[{'concept': 'abstract being'}, {'concept': 'concept'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?t ) { ( ontology:abstract_being ) ( ontology:concept ) } . ?c rdf:type ?t } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?z WHERE { VALUES ( ?h ) { ( ontology:abstract_being ) ( ontology:concept ) } . ?l rdf:type ?h } GROUP BY ?z } . FILTER ( ?q = ?j ) }
[]
event abstract being concept
Q20821272 Q5916 Q640100
SYSTEM
axiomatisation, spaceflight, Battles of the Bruch
Q20821272 Q5916 Q640100
(c(Q15619164)|c(Q151885),P361,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q151885
Max number of abstract beings or concepts a portion of are in [ANSWERS]
[[{'concept': 'Q15619164'}, {'concept': 'Q151885'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?t ) { ( ontology:Q15619164 ) ( ontology:Q151885 ) } . ?c rdf:type ?t } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?z WHERE { VALUES ( ?h ) { ( ontology:Q15619164 ) ( ontology:Q151885 ) } . ?l rdf:type ?h } GROUP BY ?z } . FILTER ( ?q = ?j ) }
axiomatisation spaceflight Battles of the Bruch
Max number of abstract beings or concepts a portion of are in axiomatisation, spaceflight and Battles of the Bruch
axiomatisation spaceflight Battles of the Bruch
action argmax
action union
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action find_reverse_tuple_counts
relation part of
type event
type concept
[[{'concept': 'abstract being'}, {'concept': 'concept'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?t ) { ( ontology:abstract_being ) ( ontology:concept ) } . ?c rdf:type ?t } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) ?z WHERE { VALUES ( ?h ) { ( ontology:abstract_being ) ( ontology:concept ) } . ?l rdf:type ?h } GROUP BY ?z } . FILTER ( ?q = ?j ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q640100
P276
Q56061
USER
Where is that event situated ?
(Q640100,P276,c(Q56061))
action filter_type
action find
entity Q640100
relation P276
type Q56061
['Q640100', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q640100 property:P276 ?q . ?q rdf:type ontology:Q56061 }
Battles of the Bruch
action filter_type
action find
entity Battles of the Bruch
relation location
type administrative territorial entity
['Battles of the Bruch', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Battles_of_the_Bruch property:location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q20821272
SYSTEM
Did you mean axiomatisation ?
Q20821272 Q5916 Q640100
(Q20821272,P276,c(Q56061)) (Q5916,P276,c(Q56061)) (Q640100,P276,c(Q56061))
[ANSWER]
['Q20821272', 'P276', {'concept': 'Q56061'}] ['Q5916', 'P276', {'concept': 'Q56061'}] ['Q640100', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q640100 property:P276 ?q . ?q rdf:type ontology:Q56061 }
axiomatisation spaceflight Battles of the Bruch
Did you mean axiomatisation ?
axiomatisation
['axiomatisation', 'location', {'concept': 'administrative territorial entity'}] ['spaceflight', 'location', {'concept': 'administrative territorial entity'}] ['Battles of the Bruch', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Battles_of_the_Bruch property:location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Battles of the Bruch. Could you tell me the answer for that?
(Q640100,P276,c(Q56061))
Q640100
['Q640100', 'P276', {'concept': 'Q56061'}]
['Battles of the Bruch', 'location', {'concept': 'administrative territorial entity'}]
[]
Q1492
SYSTEM
Barcelona
Q1492
(Q640100,P276,c(Q56061))
action filter_type
action find
entity Q640100
relation P276
type Q56061
That event is situated in [ANSWER]
['Q640100', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q640100 property:P276 ?q . ?q rdf:type ontology:Q56061 }
Barcelona
That event is situated in Barcelona
Barcelona
action filter_type
action find
entity Battles of the Bruch
relation location
type administrative territorial entity
['Battles of the Bruch', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Battles_of_the_Bruch property:location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1492
P1427
Q31629
USER
Which type of sport has start point at that administrative territory ?
(c(Q31629),P1427,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P1427
type Q31629
[{'concept': 'Q31629'}, 'P1427', 'Q1492']
SELECT DISTINCT ?u WHERE { ?u property:P1427 resource:Q1492 . ?u rdf:type ontology:Q31629 }
Barcelona
action filter_type
action find_reverse
entity Barcelona
relation start point
type type of sport
[{'concept': 'type of sport'}, 'start point', 'Barcelona']
SELECT DISTINCT ?u WHERE { ?u property:start_point resource:Barcelona . ?u rdf:type ontology:type_of_sport }
[]
type of sport
Q22921515
SYSTEM
2016 Volta a Catalunya, Stage 7
Q22921515
(c(Q31629),P1427,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P1427
type Q31629
[ANSWER] has start point at that administrative territory
[{'concept': 'Q31629'}, 'P1427', 'Q1492']
SELECT DISTINCT ?u WHERE { ?u property:P1427 resource:Q1492 . ?u rdf:type ontology:Q31629 }
2016 Volta a Catalunya, Stage 7
2016 Volta a Catalunya, Stage 7 has start point at that administrative territory
2016 Volta a Catalunya, Stage 7
action filter_type
action find_reverse
entity Barcelona
relation start point
type type of sport
[{'concept': 'type of sport'}, 'start point', 'Barcelona']
SELECT DISTINCT ?u WHERE { ?u property:start_point resource:Barcelona . ?u rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q22921515 Q18326475
P1427
Q56061
USER
How many administrative territories do 2016 Volta a Catalunya, Stage 7 or 2014 Tour of Almaty originate from ?
(Q22921515,P1427,c(Q56061)) (Q18326475,P1427,c(Q56061))
action count
action union
action filter_type
action find
entity Q22921515
relation P1427
type Q56061
action filter_type
action find
entity Q18326475
relation P1427
type Q56061
['Q22921515', 'P1427', {'concept': 'Q56061'}] ['Q18326475', 'P1427', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { VALUES ( ?h ) { ( resource:Q22921515 ) ( resource:Q18326475 ) } . ?h property:P1427 ?s }
2016 Volta a Catalunya, Stage 7 2014 Tour of Almaty
action count
action union
action filter_type
action find
entity 2016 Volta a Catalunya, Stage 7
relation start point
type administrative territorial entity
action filter_type
action find
entity 2014 Tour of Almaty
relation start point
type administrative territorial entity
['2016 Volta a Catalunya, Stage 7', 'start point', {'concept': 'administrative territorial entity'}] ['2014 Tour of Almaty', 'start point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { VALUES ( ?h ) { ( resource:2016_Volta_a_Catalunya,_Stage_7 ) ( resource:2014_Tour_of_Almaty ) } . ?h property:start_point ?s }
[]
administrative territorial entity
SYSTEM
2
Q1492 Q35493
(Q22921515,P1427,c(Q56061)) (Q18326475,P1427,c(Q56061))
action count
action union
action filter_type
action find
entity Q22921515
relation P1427
type Q56061
action filter_type
action find
entity Q18326475
relation P1427
type Q56061
[ANSWER]
['Q22921515', 'P1427', {'concept': 'Q56061'}] ['Q18326475', 'P1427', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { VALUES ( ?h ) { ( resource:Q22921515 ) ( resource:Q18326475 ) } . ?h property:P1427 ?s }
Barcelona Almaty
2
action count
action union
action filter_type
action find
entity 2016 Volta a Catalunya, Stage 7
relation start point
type administrative territorial entity
action filter_type
action find
entity 2014 Tour of Almaty
relation start point
type administrative territorial entity
['2016 Volta a Catalunya, Stage 7', 'start point', {'concept': 'administrative territorial entity'}] ['2014 Tour of Almaty', 'start point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { VALUES ( ?h ) { ( resource:2016_Volta_a_Catalunya,_Stage_7 ) ( resource:2014_Tour_of_Almaty ) } . ?h property:start_point ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1078632 Q640100
P361
Q15619164
USER
Which abstract beings are a portion of Battles of the Bruch or Navagraha ?
OR((c(Q15619164),P361,Q640100), (c(Q15619164),P361,Q1078632))
action filter_type
action union
action find_reverse
entity Q640100
relation P361
action find_reverse
entity Q1078632
relation P361
type Q15619164
{'OR': [[{'concept': 'Q15619164'}, 'P361', 'Q640100'], [{'concept': 'Q15619164'}, 'P361', 'Q1078632']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P361 resource:Q640100 } UNION { ?x property:P361 resource:Q1078632 } } . ?x rdf:type ontology:Q15619164 }
Navagraha Battles of the Bruch
action filter_type
action union
action find_reverse
entity Battles of the Bruch
relation part of
action find_reverse
entity Navagraha
relation part of
type abstract being
{'OR': [[{'concept': 'abstract being'}, 'part of', 'Battles of the Bruch'], [{'concept': 'abstract being'}, 'part of', 'Navagraha']]}
SELECT DISTINCT ?x WHERE { { { ?x property:part_of resource:Battles_of_the_Bruch } UNION { ?x property:part_of resource:Navagraha } } . ?x rdf:type ontology:abstract_being }
[]
abstract being
Q572235 Q1061795 Q204418 Q2849275 Q9081682 Q1296733 Q851426 Q950298 Q1367259 Q916959
SYSTEM
Shukra, Chandra, Surya, Mangala, Drummer of El Bruc, Shani, Budha, Rahu, Ketu, Bṛhaspati
Q572235 Q1061795 Q204418 Q2849275 Q9081682 Q1296733 Q851426 Q950298 Q1367259 Q916959
OR((c(Q15619164),P361,Q640100), (c(Q15619164),P361,Q1078632))
action filter_type
action union
action find_reverse
entity Q640100
relation P361
action find_reverse
entity Q1078632
relation P361
type Q15619164
[ANSWERS] are a portion of Battles of the Bruch or Navagraha
{'OR': [[{'concept': 'Q15619164'}, 'P361', 'Q640100'], [{'concept': 'Q15619164'}, 'P361', 'Q1078632']]}
SELECT DISTINCT ?x WHERE { { { ?x property:P361 resource:Q640100 } UNION { ?x property:P361 resource:Q1078632 } } . ?x rdf:type ontology:Q15619164 }
Shukra Chandra Surya Mangala Drummer of El Bruc Shani Budha Rahu Ketu Bṛhaspati
Shukra, Chandra, Surya, Mangala, Drummer of El Bruc, Shani, Budha, Rahu, Ketu and Bṛhaspati are a portion of Battles of the Bruch or Navagraha
Shukra Chandra Surya Mangala Drummer of El Bruc Shani Budha Rahu Ketu Bṛhaspati
action filter_type
action union
action find_reverse
entity Battles of the Bruch
relation part of
action find_reverse
entity Navagraha
relation part of
type abstract being
{'OR': [[{'concept': 'abstract being'}, 'part of', 'Battles of the Bruch'], [{'concept': 'abstract being'}, 'part of', 'Navagraha']]}
SELECT DISTINCT ?x WHERE { { { ?x property:part_of resource:Battles_of_the_Bruch } UNION { ?x property:part_of resource:Navagraha } } . ?x rdf:type ontology:abstract_being }
[]