Simple Question (Direct)
Simple Question
Q2806462
P20
Q13220204
USER
Where did Walter Hess expire ?
(Q2806462,P20,c(Q13220204))
action filter_type
action find
entity Q2806462
relation P20
type Q13220204
['Q2806462', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?u WHERE { resource:Q2806462 property:P20 ?u . ?u rdf:type ontology:Q13220204 }
Walter Hess
action filter_type
action find
entity Walter Hess
relation place of death
type second-level administrative country subdivision
['Walter Hess', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?u WHERE { resource:Walter_Hess property:place_of_death ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q69956
SYSTEM
Mammern
Q69956
(Q2806462,P20,c(Q13220204))
action filter_type
action find
entity Q2806462
relation P20
type Q13220204
Walter did o [ANSWER]
['Q2806462', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?u WHERE { resource:Q2806462 property:P20 ?u . ?u rdf:type ontology:Q13220204 }
Mammern
Walter did o Mammern
Mammern
action filter_type
action find
entity Walter Hess
relation place of death
type second-level administrative country subdivision
['Walter Hess', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?u WHERE { resource:Walter_Hess property:place_of_death ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q69956
P17
Q15617994
USER
Which administrative territory is that administrative country subdivision situated in ?
(Q69956,P17,c(Q15617994))
action filter_type
action find
entity Q69956
relation P17
type Q15617994
['Q69956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q69956 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Mammern
action filter_type
action find
entity Mammern
relation country
type designation for an administrative territorial entity
['Mammern', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mammern property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q69956,P17,c(Q15617994))
action filter_type
action find
entity Q69956
relation P17
type Q15617994
That administrative country subdivision is situated in [ANSWER]
['Q69956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q69956 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Switzerland
That administrative country subdivision is situated in Switzerland
Switzerland
action filter_type
action find
entity Mammern
relation country
type designation for an administrative territorial entity
['Mammern', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mammern property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3739407
Q15617994
USER
And what about Racehorses at Longchamp?
(Q3739407,P17,c(Q15617994))
action filter_type
action find
entity Q3739407
relation P17
type Q15617994
['Q3739407', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3739407 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Racehorses at Longchamp
action filter_type
action find
entity Racehorses at Longchamp
relation country
type designation for an administrative territorial entity
['Racehorses at Longchamp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Racehorses_at_Longchamp property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3739407,P17,c(Q15617994))
action filter_type
action find
entity Q3739407
relation P17
type Q15617994
[ANSWER]
['Q3739407', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3739407 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Racehorses at Longchamp
relation country
type designation for an administrative territorial entity
['Racehorses at Longchamp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Racehorses_at_Longchamp property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P138
Q2235308
USER
Which ship types are named after that administrative territory ?
(c(Q2235308),P138,Q142)
action filter_type
action find_reverse
entity Q142
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q142']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q142 . ?c rdf:type ontology:Q2235308 }
France
action filter_type
action find_reverse
entity France
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'France']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:France . ?c rdf:type ontology:ship_type }
[]
ship type
Q49644 Q5501998 Q5502226
SYSTEM
France, French battleship République, French frigate Républicaine française
Q5501998 Q5502226 Q49644 Q5502576
(c(Q2235308),P138,Q142)
action filter_type
action find_reverse
entity Q142
relation P138
type Q2235308
[ANSWERS] are named after that administrative territory
[{'concept': 'Q2235308'}, 'P138', 'Q142']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q142 . ?c rdf:type ontology:Q2235308 }
French battleship République French frigate Républicaine française France French ship République française
France, French battleship République and French frigate Républicaine française are named after that administrative territory
France French battleship République French frigate Républicaine française
action filter_type
action find_reverse
entity France
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'France']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:France . ?c rdf:type ontology:ship_type }
[]
Clarification
Simple Question|Single Entity|Indirect
Q49644
P520
Q15688633
USER
What are the weapons used by that ship type ?
(Q49644,P520,c(Q15688633))
action filter_type
action find
entity Q49644
relation P520
type Q15688633
['Q49644', 'P520', {'concept': 'Q15688633'}]
SELECT DISTINCT ?x WHERE { resource:Q49644 property:P520 ?x . ?x rdf:type ontology:Q15688633 }
France
action filter_type
action find
entity France
relation armament
type ship element
['France', 'armament', {'concept': 'ship element'}]
SELECT DISTINCT ?x WHERE { resource:France property:armament ?x . ?x rdf:type ontology:ship_element }
[]
ship element
Clarification for simple ques.
Q5502226
SYSTEM
Did you mean French frigate Républicaine française ?
Q49644 Q5501998 Q5502226
(Q49644,P520,c(Q15688633)) (Q5501998,P520,c(Q15688633)) (Q5502226,P520,c(Q15688633))
[ANSWER]
['Q49644', 'P520', {'concept': 'Q15688633'}] ['Q5501998', 'P520', {'concept': 'Q15688633'}] ['Q5502226', 'P520', {'concept': 'Q15688633'}]
SELECT DISTINCT ?x WHERE { resource:Q49644 property:P520 ?x . ?x rdf:type ontology:Q15688633 }
France French battleship République French frigate Républicaine française
Did you mean French frigate Républicaine française ?
French frigate Républicaine française
['France', 'armament', {'concept': 'ship element'}] ['French battleship République', 'armament', {'concept': 'ship element'}] ['French frigate Républicaine française', 'armament', {'concept': 'ship element'}]
SELECT DISTINCT ?x WHERE { resource:France property:armament ?x . ?x rdf:type ontology:ship_element }
[]
Simple Question (Coreferenced)
USER
No, I meant France. Could you tell me the answer for that?
(Q49644,P520,c(Q15688633))
Q49644
['Q49644', 'P520', {'concept': 'Q15688633'}]
['France', 'armament', {'concept': 'ship element'}]
[]
Q2936445 Q2936471
SYSTEM
305mm/45 Modèle 1906 gun, Canon de 138 mm Modèle 1910 naval gun
Q2936445 Q2936471
(Q49644,P520,c(Q15688633))
action filter_type
action find
entity Q49644
relation P520
type Q15688633
The weapons used by that ship type are the [ANSWERS]
['Q49644', 'P520', {'concept': 'Q15688633'}]
SELECT DISTINCT ?x WHERE { resource:Q49644 property:P520 ?x . ?x rdf:type ontology:Q15688633 }
305mm/45 Modèle 1906 gun Canon de 138 mm Modèle 1910 naval gun
The weapons used by that ship type are the 305mm/45 Modèle 1906 gun and Canon de 138 mm Modèle 1910 naval gun
305mm/45 Modèle 1906 gun Canon de 138 mm Modèle 1910 naval gun
action filter_type
action find
entity France
relation armament
type ship element
['France', 'armament', {'concept': 'ship element'}]
SELECT DISTINCT ?x WHERE { resource:France property:armament ?x . ?x rdf:type ontology:ship_element }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P739
Q153556 Q1183543 Q15688633
USER
How many ship elements use approximately 1 ranged weapons and devices as ammunition ?
(c(Q15688633),P739,c(Q153556)|c(Q1183543))
action count
action approx
action union
action find_tuple_counts
relation P739
type Q15688633
type Q153556
action find_tuple_counts
relation P739
type Q15688633
type Q1183543
value 1
[{'concept': 'Q15688633'}, 'P739', [{'concept': 'Q153556'}, {'concept': 'Q1183543'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:Q15688633 . ?p rdf:type ontology:Q153556 . ?x property:P739 ?p } UNION { ?x property:P739 ?p . ?x rdf:type ontology:Q15688633 . ?p rdf:type ontology:Q1183543 } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation ammunition
type ship element
type ranged weapon
action find_tuple_counts
relation ammunition
type ship element
type device
value 1
[{'concept': 'ship element'}, 'ammunition', [{'concept': 'ranged weapon'}, {'concept': 'device'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:ship_element . ?p rdf:type ontology:ranged_weapon . ?x property:ammunition ?p } UNION { ?x property:ammunition ?p . ?x rdf:type ontology:ship_element . ?p rdf:type ontology:device } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
[]
ranged weapon device ship element
SYSTEM
14
Q7277044 Q1313363 Q4642939 Q7277054 Q7277042 Q796267 Q568744 Q195463 Q1307896 Q2124346 Q2124356 Q4548055 Q4642310 Q2124348
(c(Q15688633),P739,c(Q153556)|c(Q1183543))
action count
action approx
action union
action find_tuple_counts
relation P739
type Q15688633
type Q153556
action find_tuple_counts
relation P739
type Q15688633
type Q1183543
value 1
[ANSWER]
[{'concept': 'Q15688633'}, 'P739', [{'concept': 'Q153556'}, {'concept': 'Q1183543'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:Q15688633 . ?p rdf:type ontology:Q153556 . ?x property:P739 ?p } UNION { ?x property:P739 ?p . ?x rdf:type ontology:Q15688633 . ?p rdf:type ontology:Q1183543 } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
RML 16 inch 80 ton gun RML 7 inch gun 70-pounder Whitworth naval gun RML 9 inch 12 ton gun RML 10 inch 18 ton gun BL 6 inch 80 pounder gun 36-pounder long gun demi-cannon RML 12 inch 25 ton gun RML 11 inch 25 ton gun RML 12 inch 35 ton gun 120-pounder Whitworth naval gun 68-pounder gun RML 12.5 inch 38 ton gun
14
action count
action approx
action union
action find_tuple_counts
relation ammunition
type ship element
type ranged weapon
action find_tuple_counts
relation ammunition
type ship element
type device
value 1
[{'concept': 'ship element'}, 'ammunition', [{'concept': 'ranged weapon'}, {'concept': 'device'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?x WHERE { { ?x rdf:type ontology:ship_element . ?p rdf:type ontology:ranged_weapon . ?x property:ammunition ?p } UNION { ?x property:ammunition ?p . ?x rdf:type ontology:ship_element . ?p rdf:type ontology:device } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P520
Q15688633 Q2235308
USER
Which ship types have atleast 3 ship elements as their weapon ?
(c(Q2235308),P520,c(Q15688633))
action atleast
action find_tuple_counts
relation P520
type Q2235308
type Q15688633
value 3
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q15688633'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?n ) WHERE { ?d property:P520 ?f . ?f rdf:type ontology:Q15688633 . ?d rdf:type ontology:Q2235308 } GROUP BY ?d } }
action atleast
action find_tuple_counts
relation armament
type ship type
type ship element
value 3
[{'concept': 'ship type'}, 'armament', {'concept': 'ship element'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?n ) WHERE { ?d property:armament ?f . ?f rdf:type ontology:ship_element . ?d rdf:type ontology:ship_type } GROUP BY ?d } }
[]
ship element ship type
Q2402934 Q220239 Q52905
SYSTEM
HMS Bermuda, HMS Hood, HMS Drottning Victoria
Q10515269 Q52905 Q52901 Q10515190 Q220239 Q2976013 Q3211336 Q52897 Q1342496 Q1259156 Q4352812 Q2402934
(c(Q2235308),P520,c(Q15688633))
action atleast
action find_tuple_counts
relation P520
type Q2235308
type Q15688633
value 3
[ANSWERS] have atleast 3 ship elements as their weapon
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q15688633'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?n ) WHERE { ?d property:P520 ?f . ?f rdf:type ontology:Q15688633 . ?d rdf:type ontology:Q2235308 } GROUP BY ?d } }
HMS Wasa HMS Drottning Victoria HMS Sverige HMS Tapperheten HMS Hood Sverige-class coastal defence ship Äran-class coastal defence ship HMS Gustav V HMS Oscar II HMS Dristigheten HMS Äran HMS Bermuda
HMS Bermuda, HMS Hood and HMS Drottning Victoria have atleast 3 ship elements as their weapon
HMS Bermuda HMS Hood HMS Drottning Victoria
action atleast
action find_tuple_counts
relation armament
type ship type
type ship element
value 3
[{'concept': 'ship type'}, 'armament', {'concept': 'ship element'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?n ) WHERE { ?d property:armament ?f . ?f rdf:type ontology:ship_element . ?d rdf:type ontology:ship_type } GROUP BY ?d } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q49644
P138
Q15617994
USER
How many administrative territories are the etymology of France ?
(Q49644,P138,c(Q15617994))
action count
action filter_type
action find
entity Q49644
relation P138
type Q15617994
['Q49644', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Q49644 property:P138 ?q . ?q rdf:type ontology:Q15617994 }
France
action count
action filter_type
action find
entity France
relation named after
type designation for an administrative territorial entity
['France', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:France property:named_after ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q49644,P138,c(Q15617994))
action count
action filter_type
action find
entity Q49644
relation P138
type Q15617994
[ANSWER]
['Q49644', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Q49644 property:P138 ?q . ?q rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity France
relation named after
type designation for an administrative territorial entity
['France', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:France property:named_after ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3000940
Q15617994
USER
And also tell me about cour d'Alsace-Lorraine?
(Q3000940,P138,c(Q15617994))
action count
action filter_type
action find
entity Q3000940
relation P138
type Q15617994
['Q3000940', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q3000940 property:P138 ?a . ?a rdf:type ontology:Q15617994 }
cour d'Alsace-Lorraine
action count
action filter_type
action find
entity cour d'Alsace-Lorraine
relation named after
type designation for an administrative territorial entity
["cour d'Alsace-Lorraine", 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:cour_d'Alsace-Lorraine property:named_after ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q3000940,P138,c(Q15617994))
action count
action filter_type
action find
entity Q3000940
relation P138
type Q15617994
[ANSWER]
['Q3000940', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q3000940 property:P138 ?a . ?a rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity cour d'Alsace-Lorraine
relation named after
type designation for an administrative territorial entity
["cour d'Alsace-Lorraine", 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:cour_d'Alsace-Lorraine property:named_after ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]