Simple Question (Direct)
Simple Question
Q1081180
P106
Q12737077
USER
Which occupations have Christian Muthspiel as his/her 's career ?
(Q1081180,P106,c(Q12737077))
action filter_type
action find
entity Q1081180
relation P106
type Q12737077
['Q1081180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1081180 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Christian Muthspiel
action filter_type
action find
entity Christian Muthspiel
relation occupation
type occupation
['Christian Muthspiel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Christian_Muthspiel property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q15981151 Q36834 Q158852
SYSTEM
jazz musician, composer, conductor
Q15981151 Q36834 Q158852
(Q1081180,P106,c(Q12737077))
action filter_type
action find
entity Q1081180
relation P106
type Q12737077
The [ANSWERS] have Christian Muthspiel as his/her 's career
['Q1081180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1081180 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
jazz musician composer conductor
The jazz musician, composer and conductor have Christian Muthspiel as his/her 's career
jazz musician composer conductor
action filter_type
action find
entity Christian Muthspiel
relation occupation
type occupation
['Christian Muthspiel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Christian_Muthspiel property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1081180
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q15981151,P27,c(Q1048835)) (Q36834,P27,c(Q1048835)) (Q158852,P27,c(Q1048835))
action filter_type
action find
entity Q1081180
relation P27
type Q1048835
['Q15981151', 'P27', {'concept': 'Q1048835'}] ['Q36834', 'P27', {'concept': 'Q1048835'}] ['Q158852', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1081180 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Christian Muthspiel
action filter_type
action find
entity Christian Muthspiel
relation country of citizenship
type political territorial entity
['jazz musician', 'country of citizenship', {'concept': 'political territorial entity'}] ['composer', 'country of citizenship', {'concept': 'political territorial entity'}] ['conductor', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Christian_Muthspiel property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q15981151,P27,c(Q1048835)) (Q36834,P27,c(Q1048835)) (Q158852,P27,c(Q1048835))
action filter_type
action find
entity Q1081180
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q15981151', 'P27', {'concept': 'Q1048835'}] ['Q36834', 'P27', {'concept': 'Q1048835'}] ['Q158852', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1081180 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Austria
Austria is that person a civilian of
Austria
action filter_type
action find
entity Christian Muthspiel
relation country of citizenship
type political territorial entity
['jazz musician', 'country of citizenship', {'concept': 'political territorial entity'}] ['composer', 'country of citizenship', {'concept': 'political territorial entity'}] ['conductor', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Christian_Muthspiel property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q926811 Q1081180
P47 P27
Q1048835
USER
Which political territories are Christian Muthspiel an inhabitant of or share border with Valdesamario ?
OR((Q1081180,P27,c(Q1048835)), (Q926811,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1081180
relation P27
action find
entity Q926811
relation P47
type Q1048835
{'OR': [['Q1081180', 'P27', {'concept': 'Q1048835'}], ['Q926811', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1081180 property:P27 ?x } UNION { resource:Q926811 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Valdesamario Christian Muthspiel
action filter_type
action union
action find
entity Christian Muthspiel
relation country of citizenship
action find
entity Valdesamario
relation shares border with
type political territorial entity
{'OR': [['Christian Muthspiel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valdesamario', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Christian_Muthspiel property:country_of_citizenship ?x } UNION { resource:Valdesamario property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1615429 Q137729 Q40 Q1622304 Q44791 Q137179 Q519749
SYSTEM
Soto y Amío, Quintana del Castillo, Austria, Villagatón, Igüeña, Riello, Las Omañas
Q1615429 Q137729 Q40 Q1622304 Q44791 Q137179 Q519749
OR((Q1081180,P27,c(Q1048835)), (Q926811,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1081180
relation P27
action find
entity Q926811
relation P47
type Q1048835
[ANSWERS] are Christian Muthspiel an inhabitant of or share border with Valdesamario
{'OR': [['Q1081180', 'P27', {'concept': 'Q1048835'}], ['Q926811', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1081180 property:P27 ?x } UNION { resource:Q926811 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Soto y Amío Quintana del Castillo Austria Villagatón Igüeña Riello Las Omañas
Soto y Amío, Quintana del Castillo, Austria, Villagatón, Igüeña, Riello and Las Omañas are Christian Muthspiel an inhabitant of or share border with Valdesamario
Soto y Amío Quintana del Castillo Austria Villagatón Igüeña Riello Las Omañas
action filter_type
action union
action find
entity Christian Muthspiel
relation country of citizenship
action find
entity Valdesamario
relation shares border with
type political territorial entity
{'OR': [['Christian Muthspiel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Valdesamario', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Christian_Muthspiel property:country_of_citizenship ?x } UNION { resource:Valdesamario property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1615429 Q137729 Q40 Q1622304 Q44791 Q137179 Q519749
P47
Q1048835
USER
Which political territories have a shared border with those ones ?
(Q1615429,P47,c(Q1048835)) (Q137729,P47,c(Q1048835)) (Q40,P47,c(Q1048835)) (Q1622304,P47,c(Q1048835)) (Q44791,P47,c(Q1048835)) (Q137179,P47,c(Q1048835)) (Q519749,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q1615429', 'P47', {'concept': 'Q1048835'}] ['Q137729', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}] ['Q1622304', 'P47', {'concept': 'Q1048835'}] ['Q44791', 'P47', {'concept': 'Q1048835'}] ['Q137179', 'P47', {'concept': 'Q1048835'}] ['Q519749', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?f property:P47 ?l . VALUES ( ?f ) { ( resource:Q1615429 ) ( resource:Q137729 ) ( resource:Q40 ) } . ?l rdf:type ontology:Q1048835 }
Soto y Amío Quintana del Castillo Austria Villagatón Igüeña Riello Las Omañas
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Soto y Amío', 'shares border with', {'concept': 'political territorial entity'}] ['Quintana del Castillo', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}] ['Villagatón', 'shares border with', {'concept': 'political territorial entity'}] ['Igüeña', 'shares border with', {'concept': 'political territorial entity'}] ['Riello', 'shares border with', {'concept': 'political territorial entity'}] ['Las Omañas', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?f property:shares_border_with ?l . VALUES ( ?f ) { ( resource:Soto_y_Amío ) ( resource:Quintana_del_Castillo ) ( resource:Austria ) } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q44791 Q44791
SYSTEM
Igüeña for 2nd, 3rd, Germany for 1st
Q26442 Q519749 Q137163 Q137207 Q137179 Q141235 Q1640113 Q1635258 Q1622304 Q1650252 Q137174 Q519749 Q1641158 Q183 Q141235 Q137729 Q1605945 Q26606 Q44791 Q44919 Q1622304 Q1605945 Q44799 Q44852 Q137179 Q137211 Q1391476 Q1615429 Q26442 Q44791 Q141211 Q137211 Q1607678 Q1615429 Q137729 Q137718 Q137219 Q137163 Q137174
(Q1615429,P47,c(Q1048835)) (Q137729,P47,c(Q1048835)) (Q40,P47,c(Q1048835)) (Q1622304,P47,c(Q1048835)) (Q44791,P47,c(Q1048835)) (Q137179,P47,c(Q1048835)) (Q519749,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS]
['Q1615429', 'P47', {'concept': 'Q1048835'}] ['Q137729', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}] ['Q1622304', 'P47', {'concept': 'Q1048835'}] ['Q44791', 'P47', {'concept': 'Q1048835'}] ['Q137179', 'P47', {'concept': 'Q1048835'}] ['Q519749', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?f property:P47 ?l . VALUES ( ?f ) { ( resource:Q1615429 ) ( resource:Q137729 ) ( resource:Q40 ) } . ?l rdf:type ontology:Q1048835 }
Los Barrios de Luna Las Omañas Santa María de Ordás Carrocera Riello Magaz de Cepeda Villamejil Turcia Villagatón Carrizo de la Ribera Llamas de la Ribera Las Omañas Benavides Germany Magaz de Cepeda Quintana del Castillo Torre del Bierzo Brazuelo Igüeña Folgoso de la Ribera Villagatón Torre del Bierzo Noceda del Bierzo Páramo del Sil Riello Murias de Paredes Palacios del Sil Soto y Amío Los Barrios de Luna Igüeña San Emiliano Murias de Paredes Sena de Luna Soto y Amío Quintana del Castillo Cimanes del Tejar Rioseco de Tapia Santa María de Ordás Llamas de la Ribera
Germany, Igüeña and Igüeña have a shared border with those ones
Germany Igüeña Igüeña
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Soto y Amío', 'shares border with', {'concept': 'political territorial entity'}] ['Quintana del Castillo', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}] ['Villagatón', 'shares border with', {'concept': 'political territorial entity'}] ['Igüeña', 'shares border with', {'concept': 'political territorial entity'}] ['Riello', 'shares border with', {'concept': 'political territorial entity'}] ['Las Omañas', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?f property:shares_border_with ?l . VALUES ( ?f ) { ( resource:Soto_y_Amío ) ( resource:Quintana_del_Castillo ) ( resource:Austria ) } . ?l rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q183
P176
Q81103
USER
What was produced by that political territory ?
(c(Q81103),P176,Q183)
action filter_type
action find_reverse
entity Q183
relation P176
type Q81103
[{'concept': 'Q81103'}, 'P176', 'Q183']
SELECT DISTINCT ?a WHERE { ?a property:P176 resource:Q183 . ?a rdf:type ontology:Q81103 }
Germany
action filter_type
action find_reverse
entity Germany
relation manufacturer
type cannon
[{'concept': 'cannon'}, 'manufacturer', 'Germany']
SELECT DISTINCT ?a WHERE { ?a property:manufacturer resource:Germany . ?a rdf:type ontology:cannon }
[]
cannon
Clarification for simple ques.
Q44791
SYSTEM
Did you mean Igüeña ?
Q183 Q44791 Q44791
(c(Q81103),P176,Q183) (c(Q81103),P176,Q44791) (c(Q81103),P176,Q44791)
[ANSWER]
[{'concept': 'Q81103'}, 'P176', 'Q183'] [{'concept': 'Q81103'}, 'P176', 'Q44791'] [{'concept': 'Q81103'}, 'P176', 'Q44791']
SELECT DISTINCT ?a WHERE { ?a property:P176 resource:Q183 . ?a rdf:type ontology:Q81103 }
Germany Igüeña Igüeña
Did you mean Igüeña ?
Igüeña
[{'concept': 'cannon'}, 'manufacturer', 'Germany'] [{'concept': 'cannon'}, 'manufacturer', 'Igüeña'] [{'concept': 'cannon'}, 'manufacturer', 'Igüeña']
SELECT DISTINCT ?a WHERE { ?a property:manufacturer resource:Germany . ?a rdf:type ontology:cannon }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q81103),P176,Q183)
Q183
[{'concept': 'Q81103'}, 'P176', 'Q183']
[{'concept': 'cannon'}, 'manufacturer', 'Germany']
[]
Q813702
SYSTEM
Becker Type M2
Q813702
(c(Q81103),P176,Q183)
action filter_type
action find_reverse
entity Q183
relation P176
type Q81103
[ANSWER] was produced by that political territory
[{'concept': 'Q81103'}, 'P176', 'Q183']
SELECT DISTINCT ?a WHERE { ?a property:P176 resource:Q183 . ?a rdf:type ontology:Q81103 }
Becker Type M2
Becker Type M2 was produced by that political territory
Becker Type M2
action filter_type
action find_reverse
entity Germany
relation manufacturer
type cannon
[{'concept': 'cannon'}, 'manufacturer', 'Germany']
SELECT DISTINCT ?a WHERE { ?a property:manufacturer resource:Germany . ?a rdf:type ontology:cannon }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q813702 Q361 Q81545
P607
Q198
USER
Did World War I and 2011 Libyan Civil War fight in Becker Type M2 ?
(Q813702,P607,Q361) (Q813702,P607,Q81545)
action is_in
entity Q813702
action intersection
action find_reverse
entity Q361
relation P607
action find_reverse
entity Q81545
relation P607
['Q813702', 'P607', 'Q361'] ['Q813702', 'P607', 'Q81545']
ASK WHERE { resource:Q813702 property:P607 resource:Q361 . resource:Q813702 property:P607 resource:Q81545 }
Becker Type M2 World War I 2011 Libyan Civil War
action is_in
entity Becker Type M2
action intersection
action find_reverse
entity World War I
relation conflict
action find_reverse
entity 2011 Libyan Civil War
relation conflict
['Becker Type M2', 'conflict', 'World War I'] ['Becker Type M2', 'conflict', '2011 Libyan Civil War']
ASK WHERE { resource:Becker_Type_M2 property:conflict resource:World_War_I . resource:Becker_Type_M2 property:conflict resource:2011_Libyan_Civil_War }
[]
war
SYSTEM
YES and NO respectively
(Q813702,P607,Q361) (Q813702,P607,Q81545)
action is_in
entity Q813702
action intersection
action find_reverse
entity Q361
relation P607
action find_reverse
entity Q81545
relation P607
[ANSWER]
['Q813702', 'P607', 'Q361'] ['Q813702', 'P607', 'Q81545']
ASK WHERE { resource:Q813702 property:P607 resource:Q361 . resource:Q813702 property:P607 resource:Q81545 }
YES and NO respectively
action is_in
entity Becker Type M2
action intersection
action find_reverse
entity World War I
relation conflict
action find_reverse
entity 2011 Libyan Civil War
relation conflict
['Becker Type M2', 'conflict', 'World War I'] ['Becker Type M2', 'conflict', '2011 Libyan Civil War']
ASK WHERE { resource:Becker_Type_M2 property:conflict resource:World_War_I . resource:Becker_Type_M2 property:conflict resource:2011_Libyan_Civil_War }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q203040
P190
Q486972 Q15617994 Q1048835
USER
How many political territories are twin town of more number of human settlements or administrative territories than El Puerto de Santa María ?
(c(Q1048835),P190,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q203040
relation P190
type Q486972
type Q15617994
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?e ) WHERE { { ?z property:P190 ?x . ?z rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q486972 } UNION { ?z rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?z property:P190 ?x } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:Q203040 property:P190 ?a . { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } . ?a rdf:type ?y } } } . FILTER ( ?e > ?f ) }
El Puerto de Santa María
action count
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity El Puerto de Santa María
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?e ) WHERE { { ?z property:sister_city ?x . ?z rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:human_settlement } UNION { ?z rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:sister_city ?x } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:El_Puerto_de_Santa_María property:sister_city ?a . { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?y } } } . FILTER ( ?e > ?f ) }
[]
human settlement designation for an administrative territorial entity political territorial entity
SYSTEM
13
Q207111 Q13521 Q193780 Q10436 Q748078 Q798747 Q980131 Q436491 Q615722 Q353618 Q10445 Q15626 Q5826
(c(Q1048835),P190,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q203040
relation P190
type Q486972
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?e ) WHERE { { ?z property:P190 ?x . ?z rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q486972 } UNION { ?z rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?z property:P190 ?x } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:Q203040 property:P190 ?a . { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } . ?a rdf:type ?y } } } . FILTER ( ?e > ?f ) }
North Lanarkshire Sant Feliu de Guíxols Almuñécar Kulmbach Neath Port Talbot County Borough Mondorf-les-Bains Massaranduba, Santa Catarina Altea Santa Fe Adeje Forchheim Olesa de Montserrat Xi'an
13
action count
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity El Puerto de Santa María
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?e ) WHERE { { ?z property:sister_city ?x . ?z rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:human_settlement } UNION { ?z rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:sister_city ?x } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:El_Puerto_de_Santa_María property:sister_city ?a . { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?y } } } . FILTER ( ?e > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2004395
P190
Q486972 Q15617994 Q1048835
USER
And what about Piraquara?
(c(Q1048835),P190,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q2004395
relation P190
type Q486972
type Q15617994
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?r WHERE { { ?r property:P190 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q486972 } UNION { ?r property:P190 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q2004395 property:P190 ?q . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } } } } }
Piraquara
action count
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Piraquara
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?r WHERE { { ?r property:sister_city ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:human_settlement } UNION { ?r property:sister_city ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Piraquara property:sister_city ?q . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
human settlement designation for an administrative territorial entity political territorial entity
SYSTEM
13
Q207111 Q13521 Q193780 Q10436 Q748078 Q798747 Q980131 Q436491 Q615722 Q353618 Q10445 Q15626 Q5826
(c(Q1048835),P190,c(Q486972)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q2004395
relation P190
type Q486972
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?r WHERE { { ?r property:P190 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q486972 } UNION { ?r property:P190 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q2004395 property:P190 ?q . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q486972 ) ( ontology:Q15617994 ) } } } } }
North Lanarkshire Sant Feliu de Guíxols Almuñécar Kulmbach Neath Port Talbot County Borough Mondorf-les-Bains Massaranduba, Santa Catarina Altea Santa Fe Adeje Forchheim Olesa de Montserrat Xi'an
13
action count
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Piraquara
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?r WHERE { { ?r property:sister_city ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:human_settlement } UNION { ?r property:sister_city ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Piraquara property:sister_city ?q . { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:human_settlement ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P520
Q81103 Q2235308
USER
How many ship types have atmost 2 cannons as their armament ?
(c(Q2235308),P520,c(Q81103))
action count
action atmost
action find_tuple_counts
relation P520
type Q2235308
type Q81103
value 2
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?f ) WHERE { ?n property:P520 ?g . ?g rdf:type ontology:Q81103 . ?n rdf:type ontology:Q2235308 } GROUP BY ?n } . FILTER ( ?f <= 2 ) }
action count
action atmost
action find_tuple_counts
relation armament
type ship type
type cannon
value 2
[{'concept': 'ship type'}, 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?f ) WHERE { ?n property:armament ?g . ?g rdf:type ontology:cannon . ?n rdf:type ontology:ship_type } GROUP BY ?n } . FILTER ( ?f <= 2 ) }
[]
cannon ship type
SYSTEM
489
Q10406832 Q10543422 Q15106468 Q10548373 Q2302386 Q1935618 Q1971557 Q10513131 Q1483548 Q632460 Q10515146 Q1711338 Q10515142 Q10515141 Q46159 Q4993491 Q10515149 Q10513162 Q1053842 Q5632310 Q1422734 Q368419 Q1806597 Q14876137 Q1422739 Q980570 Q49644 Q10513142 Q7867460 Q1470212 Q5632896 Q2164060 Q521029 Q598581 Q7869921 Q1788034 Q2301794 Q2099267 Q2712823 Q11707025 Q10515269 Q10515264 Q6019761 Q10515262 Q10515263 Q10515261 Q1433093 Q5971123 Q10515037 Q10515034 Q968667 Q10515032 Q10513085 Q10418071 Q10513087 Q14875868 Q7873660 Q14876166 Q10513243 Q5634430 Q10513246 Q10513244 Q478298 Q2469792 Q1715770 Q10515085 Q10515088 Q5631250 Q2302353 Q52905 Q268042 Q52901 Q5970896 Q1356916 Q32771 Q7867085 Q6138545 Q1786716 Q2301237 Q280710 Q1862142 Q632503 Q1999797 Q821843 Q5636029 Q5636027 Q5636024 Q2003791 Q761869 Q616488 Q2003799 Q10513105 Q10513104 Q10513107 Q924151 Q10513102 Q10513109 Q10513108 Q1790239 Q10515198 Q10515211 Q10515194 Q10515197 Q10515190 Q453570 Q10515144 Q472986 Q7870497 Q1734868 Q1755178 Q7868733 Q10515103 Q10515102 Q10515107 Q5964938 Q749868 Q4352800 Q2003808 Q7870122 Q6141356 Q747983 Q6144695 Q6141293 Q14876127 Q14876126 Q15133262 Q10513208 Q220239 Q10513207 Q1788001 Q14876128 Q10513200 Q10515153 Q13417754 Q1718601 Q1337120 Q6719343 Q4052175 Q2029200 Q1754034 Q1260634 Q902746 Q1781111 Q5227796 Q10515073 Q10515071 Q10515077 Q1063228 Q10515075 Q5968178 Q2030604 Q2302375 Q2003758 Q301073 Q3264869 Q1094682 Q308909 Q923779 Q5399416 Q3006912 Q1971589 Q499055 Q748913 Q937047 Q5231481 Q13360784 Q543593 Q1272420 Q4347031 Q10513152 Q10513150 Q11288203 Q2000932 Q13230044 Q498760 Q587557 Q6132017 Q1459982 Q10513270 Q928457 Q10515253 Q10515159 Q10515251 Q10515255 Q6138608 Q10515259 Q10515258 Q10515155 Q10515157 Q10515022 Q10515286 Q10515027 Q10515028 Q4052028 Q1564260 Q2000900 Q974939 Q762384 Q2976013 Q2594353 Q1230074 Q14876176 Q10513273 Q2470102 Q10513279 Q1029271 Q785266 Q6138306 Q1784063 Q10513189 Q7867634 Q1201247 Q10526917 Q2091881 Q2091889 Q1140782 Q670415 Q371294 Q10515220 Q1810041 Q10514997 Q685632 Q7873770 Q600125 Q5229866 Q5634350 Q10515160 Q10515163 Q1467248 Q10515166 Q1566425 Q1687136 Q4352643 Q46138 Q3237833 Q3211336 Q10515184 Q52897 Q2006011 Q165916 Q10515116 Q976846 Q10515113 Q10515118 Q10515119 Q535556 Q10690966 Q10513233 Q10513232 Q10513231 Q10513230 Q10513237 Q10513239 Q15138129 Q4405311 Q6144946 Q10515175 Q11712993 Q206562 Q2005518 Q10515200 Q10515201 Q10515203 Q7869705 Q10515018 Q1344146 Q4384713 Q10515013 Q962041 Q10515014 Q18011162 Q1789356 Q4992389 Q7872657 Q5634552 Q975988 Q6144738 Q8196093 Q10515064 Q616899 Q10515061 Q10515062 Q298395 Q2471518 Q7874656 Q922727 Q5501999 Q5501991 Q5501995 Q503453 Q1778502 Q1787992 Q1783702 Q4352822 Q1815806 Q15104547 Q508531 Q2001742 Q1596193 Q11323769 Q10513166 Q7874158 Q10517501 Q699713 Q10515231 Q1249407 Q10515233 Q1342496 Q10515237 Q1545471 Q2166261 Q5232273 Q631148 Q1061474 Q567967 Q7867378 Q604857 Q10689319 Q10515245 Q10515243 Q10515055 Q10515054 Q10515057 Q10515051 Q10515053 Q358966 Q1259156 Q2342404 Q7874470 Q506022 Q7871815 Q1761221 Q14876153 Q1578014 Q7874906 Q631540 Q1474340 Q2061875 Q21979631 Q10723800 Q1472052 Q5971096 Q10513197 Q6138564 Q6138562 Q15130681 Q10513191 Q10495781 Q2001200 Q10513296 Q6138393 Q5633432 Q10514984 Q1631200 Q1601564 Q5226794 Q10513121 Q1628755 Q10513124 Q15117029 Q2471257 Q10515173 Q10515171 Q10515176 Q1573507 Q7869984 Q710732 Q667833 Q820203 Q639642 Q1725498 Q1371659 Q10513290 Q993944 Q694531 Q43464 Q1674076 Q1760185 Q10513221 Q7276440 Q10513229 Q6138349 Q7874949 Q1240203 Q3742738 Q10515279 Q10515274 Q10515277 Q11348852 Q844743 Q5473685 Q4352906 Q10513093 Q10513092 Q391061 Q10513097 Q10513095 Q10513098 Q1453075 Q205637 Q10513251 Q4352699 Q2093829 Q10513252 Q10513255 Q4352756 Q1973096 Q10515093 Q1437413 Q510214 Q2117332 Q847672 Q1575297 Q1356922 Q5636040 Q4346742 Q1287639 Q632457 Q1739268 Q15129478 Q688771 Q2005990 Q174818 Q204342 Q5636039 Q5636031 Q5636034 Q1559709 Q2454760 Q3381131 Q1444474 Q10513079 Q10513171 Q10513174 Q1359363 Q217132 Q10515223 Q10515189 Q10515188 Q6719921 Q10515224 Q7869683 Q7869682 Q10515187 Q748373 Q1783713 Q919768 Q7875454 Q10689326 Q10689324 Q7873781 Q10513091 Q10515138 Q10515139 Q4352812 Q10515132 Q10515133 Q10515046 Q7408497 Q570993 Q4442824 Q10513219 Q463161 Q1363510 Q4352711 Q7871781 Q6144928 Q2402934 Q6138496 Q647787 Q1621675 Q935791 Q7874855 Q1683284 Q1379656 Q4354884 Q4354888 Q1052123 Q2117295 Q1816732 Q1971094 Q13230646 Q2001217 Q819167 Q639502 Q663075 Q10513281 Q5971155 Q1380250
(c(Q2235308),P520,c(Q81103))
action count
action atmost
action find_tuple_counts
relation P520
type Q2235308
type Q81103
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?f ) WHERE { ?n property:P520 ?g . ?g rdf:type ontology:Q81103 . ?n rdf:type ontology:Q2235308 } GROUP BY ?n } . FILTER ( ?f <= 2 ) }
Altair class training ship Kaparen-class patrol boat Cigogne Koster-class mine countermeasures vessel USS Pasadena USS Pennsylvania USS La Jolla HMS Bredskär USS Wasp USS Sam Houston HMS Spårö USS Lewis and Clark HMS Sprängskär HMS Sprängaren USCGC Southwind HMS Näcken HMS Starkodder HMS Djärv Tarawa-class amphibious assault ship HMS Enterprise USS Michigan USS Seahorse USS Philadelphia HMS Altaskär USS Ohio USS Cheyenne France HMS Capella USS Aspro USS Honolulu HMS Iron Duke HMS Vanguard Kirov-class battlecruiser USS Dallas USS Gurnard Kresta I-class cruiser USS George Washington Plejad-class torpedo boat USS Tautog HMS Forester (1911) HMS Wasa HMS Västerås Indian HMS Västervik HMS Vållö HMS Västergötland Landsort-class mine countermeasures vessel USS Sturgeon HMS Najad HMS Munter USS Maryland HMS Munin HMS Altair Arkö-class minesweeper HMS Altair Patrol craft type 60 USS SC-18 HMS Flaggskär HMS Hugin HMS St Albans HMS Huvudskär HMS Hurtig USS Samuel B. Roberts USS John C. Calhoun USS Wyoming HMS Rapp HMS Regulus HMS Alaric USS Memphis HMS Drottning Victoria Ukrainian submarine Zaporizhzhia HMS Sverige USS Ray USS Baton Rouge HNLMS Walrus USS Agamenticus USS Haddock USS Alaska USS Bainbridge HMS Invincible USS Boston USS John Marshall USS Tucson USS Francis Scott Key HMS Gotland HMS Carlskrona Ejdern-class sonobuoy vessel USS Albuquerque Grisha class corvette USS Leahy USS Newport News HMS Arkösund HMS Arkö HMS Astrea USS Maine HMS Arholma HMS Astrea HMS Aspö Kanin-class destroyer HMS Tjörn HMS Umeå HMS Tirfing HMS Tjurkö HMS Tapperheten HMS Bulwark HMS Spårö USS Bremerton USS James Madison Kashin-class destroyer USS Florida USS Daniel Boone HMS Sjöbjörnen HMS Sirius HMS Sjöhunden USS Spadefish USS Scranton HMS Småland USS Columbus USS Henry L. Stimson USS Henry Clay USS Columbia USS L. Mendel Rivers USS Benjamin Franklin HMS Väderskär HMS Torskär Saphir HMS Gråskär HMS Hood HMS Grundsund USS West Virginia HMS Örskär HMS Gillöga HMS Stolt HMS Galten USS Buffalo USS Narwhal MV Cape Ducato USS Bancroft HMS Göta Lejon K-222 USS Helena Bravo-class submarine USS Birmingham USS Bergall HMS Plejad HMS Piteå HMS Pollux Sovremennyy-class destroyer HMS Polaris USS Batfish Turya-class torpedo boat USS Toledo USS Santa Fe Spica-class torpedo boat Tre Kronor-class cruiser HMS Claes Uggla HMS Dreadnought Nanuchka class corvette HMS Mode USS Drum USS Charlotte USS Pintado USS Harry S. Truman HNLMS Abraham Crijnssen USS Sea Devil HMS Sjöhästen SMS Dresden USS Asheville HMS Tre Kronor HMS Dalarö HMS Castor USS Will Rogers USS Ramage HMS Mysing USS Guitarro USS Abraham Lincoln USS Theodore Roosevelt USS Kentucky HMS Jägaren Kiev-class aircraft carrier HMS Virgo HMS Sturkö HMS Vinö HMS Vitaskär USS Woodrow Wilson HMS Väktaren HMS Väktaren HMS Stockholm HMS Strömstad HMS Mjölner HMS Östergötland HMS Modig HMS Mode German submarine U-361 HMS Ajax USS Key West Kortenaer-class frigate Visby class corvette Sverige-class coastal defence ship HMS Gotland Kresta II-class cruiser HMS Häradskär HMS Kalmar USS Mariano G. Vallejo HMS Kaparen USS Greeneville USS Daly USS Nathan Hale USS Cincinnati HMS Furusund USS Bearss HMS Ocean (L12) Hugin-class patrol boat USS Finback USS Sand Lance HMS Illustrious Soviet command ship SSV-33 USS Providence HMS Uttern Steregushchy class corvette HMS M20 USS Olympia USS Sam Rayburn USS Silversides USS James K. Polk HMS Sjöormen HMS Sturkö HMS Styrbjörn USS Parche HMS Styrsö USS Rhode Island USS Houston HMS Helsingborg USCGC Burton Island French battleship Liberté Äran-class coastal defence ship HMS Sälen HMS Gustav V USS Annapolis USS Montpelier HMS Skaftö USS Grayling HMS Sjölejonet HMS Skanör HMS Skifteskär BAP Almirante Grau Tapper-class patrol craft HMS Hasslö HMS Hamnskär HMS Hanö HMS Halland HMS Hisingen HMS Hojskär Topaz HMS Psilander USS Casimir Pulaski HMS Svensksund HMS Cayman Kotlin-class destroyer USS Baltimore HMS Tordön HMS Trygg HMS Tärnö USS George Washington Carver HMS Malmö HMS Fylgia USS Patrick Henry HMS Magne Halland-class destroyer HMS Magne KNS Mamba USS Omaha HMS Visborg USS Pargo HMS Sylvia USS Puffer USS Billfish HMS Älvsborg HMS Orädd USS City of Corpus Christi HMS Ornö HMS Orust Östergötland-class destroyer USS Von Steuben USS Tecumseh Type 22 frigate French battleship Vérité French battleship Démocratie French battleship Justice USS Kamehameha USS Nebraska USS Tennessee USS Salt Lake City HMS Tirfing Stenka class patrol boat Aigrette USS Nevada Sverdlov-class cruiser USS Glenard P. Lipscomb USS Nathanael Greene HMS Dristig USS Simon Bolivar Hanö-class minesweeper Parchim class corvette HMS Varberg USS Miami HMS Vargen HMS Oscar II HMS Vega Type 42 destroyer USS Los Angeles USS Bluefish Bora-class guided missile hovercraft Invincible-class aircraft carrier USS Chicago USS Archerfish USS Boise T26 HMS Viksten HMS Vidar HMS Nynäshamn HMS Norsten HMS Nämdö HMS Norrköping HMS Norrtälje Kuznetsov-class aircraft carrier HMS Dristigheten Japanese submarine I-168 USS Sunfish USS Arizona USS Milwaukee USS Alabama HMS Äggskär USS California USS Tunny USS Thomas Jefferson USS Ethan Allen BAP Almirante Guise Project 03160 Raptor Ystad-class missile boat USS Springfield USS William H. Bates HMS Getorskär USS John Adams USS Alexander Hamilton Rubis HMS Fårösund Gåssten class minesweeper USS Jefferson City HMS Landsort USS Cavalla HMS Montrose HMS Luleå Kara-class cruiser USS Atlanta USS Hawkbill HMS Blackan USS Mississippi HMS Blidö Émeraude USS Stonewall Jackson HMS Svea HMS Svartlöga HMS Sveparen USS Minneapolis–Saint Paul USS Hammerhead HMS Glowworm USS Daniel Webster USS Andrew Jackson HMS Endurance USS Louisiana Pauk class corvette HMS Koster USS San Juan Koni-class frigate HNLMS De Zeven Provinciën USS Augusta USS Portsmouth HMS Gåssten RFA Cardigan Bay HMS Halmstad USS Lapon USS Ulysses S. Grant HMS Smyge HMS Trossö MHS Öregrund HMS Ystad HMS Ärlig USS Lewis B. Puller USS Robert E. Lee HMS Göteborg HMS Sundsvall HMS Arcturus HMS Antares Kirov-class cruiser HMS Argo HMS Arcturus HMS Argo USS Hampton Krivak-class frigate HMS Hälsingland HMS Visby USS Tullibee HMS Händig HMS Iggö HMS Härnösand USS Henry M. Jackson HMS Rödlöga USS Jacksonville USS Alexandria Stockholm class corvette HMS Ark Royal USS Washington (BB-56) Japanese destroyer Murasame HMS Älvsnabben USS Lafayette USS Groton USS Thomas A. Edison Norrköping-class missile boat Opale Tarantul class corvette USS Albany USS Hyman G. Rickover USS Enterprise HMS Uppland HMS Halland HMS Orion Göteborg-class corvette Russian submarine Yury Dolgorukiy HNoMS Svenner HMS Queen Elizabeth HMS Aldebaran HMS Dämman HMS Ekeskär Slava class cruiser USS George H.W. Bush HMS Utö HMS Tapper HMS Sökaren HMS Protector HMS Vale USS George C. Marshall USS George Bancroft HMS Södermanland USS Topeka USS Phoenix USS New York City USS Whale T56 T46 USS Samuel B. Roberts HMS Antares HMS Springaren HMS Springaren HMS Äran HMS Snapphanen HMS Spejaren HMS Nordkaparen USS America USS James Monroe HMS Spica HMS Gävle USS Nimitz Komar class missile boat HMS Sundsvall USS Michael Monsoor USS Flying Fish HMS Bermuda USS Queenfish Osa class missile boats Sarancha class missile boat USS San Francisco USS Trepang USS Georgia USS Indianapolis HMS Nyköping HMS Karlstad Udaloy-class destroyer USS Hartford De Zeven Provinciën-class cruiser USS Oklahoma City HMS Rigel USS Pittsburgh Riga-class frigate USS Abraham Lincoln USS Richard B. Russell HMS Karlsö USS Pogy USS Louisville
489
action count
action atmost
action find_tuple_counts
relation armament
type ship type
type cannon
value 2
[{'concept': 'ship type'}, 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?f ) WHERE { ?n property:armament ?g . ?g rdf:type ontology:cannon . ?n rdf:type ontology:ship_type } GROUP BY ?n } . FILTER ( ?f <= 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q5970896
P520
Q81103 Q2235308
USER
How many ship types have approximately the same number of cannons as their armament as USS Ray ?
(c(Q2235308),P520,c(Q81103))
action count
action approx
action find_tuple_counts
relation P520
type Q2235308
type Q81103
action count
action filter_type
action find
entity Q5970896
relation P520
type Q2235308
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?o ) WHERE { ?r property:P520 ?i . ?r rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q81103 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q5970896 property:P520 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?o = ?s ) }
USS Ray
action count
action approx
action find_tuple_counts
relation armament
type ship type
type cannon
action count
action filter_type
action find
entity USS Ray
relation armament
type ship type
[{'concept': 'ship type'}, 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?o ) WHERE { ?r property:armament ?i . ?r rdf:type ontology:ship_type . ?i rdf:type ontology:cannon } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:USS_Ray property:armament ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?o = ?s ) }
[]
cannon ship type
SYSTEM
316
Q10406832 Q15106468 Q2302386 Q1935618 Q1971557 Q1483548 Q632460 Q1711338 Q10515141 Q4993491 Q10513162 Q1053842 Q1422734 Q368419 Q1806597 Q1422739 Q980570 Q49644 Q7867460 Q1470212 Q5632896 Q2164060 Q521029 Q598581 Q7869921 Q1788034 Q2301794 Q2712823 Q11707025 Q10515269 Q6019761 Q10515261 Q5971123 Q10515037 Q10515034 Q968667 Q10513085 Q7873660 Q5634430 Q10513244 Q478298 Q2469792 Q1715770 Q10515085 Q2302353 Q52905 Q268042 Q52901 Q5970896 Q1356916 Q32771 Q7867085 Q6138545 Q1786716 Q2301237 Q1862142 Q632503 Q1999797 Q821843 Q5636029 Q5636024 Q2003791 Q761869 Q616488 Q2003799 Q10513107 Q924151 Q1790239 Q453570 Q10515144 Q472986 Q7870497 Q1734868 Q1755178 Q7868733 Q10515103 Q10515107 Q5964938 Q749868 Q2003808 Q7870122 Q6141356 Q747983 Q6144695 Q6141293 Q15133262 Q1788001 Q10515153 Q1718601 Q1337120 Q6719343 Q4052175 Q1754034 Q1260634 Q902746 Q1781111 Q5227796 Q1063228 Q5968178 Q2030604 Q2302375 Q2003758 Q1094682 Q308909 Q923779 Q5399416 Q3006912 Q1971589 Q499055 Q748913 Q937047 Q5231481 Q13360784 Q543593 Q1272420 Q11288203 Q2000932 Q498760 Q587557 Q6132017 Q1459982 Q928457 Q6138608 Q10515286 Q10515027 Q4052028 Q1564260 Q2000900 Q974939 Q2976013 Q1230074 Q2470102 Q1029271 Q785266 Q6138306 Q1784063 Q7867634 Q1201247 Q2091881 Q2091889 Q670415 Q371294 Q1810041 Q685632 Q7873770 Q600125 Q5229866 Q5634350 Q10515160 Q1467248 Q1566425 Q1687136 Q46138 Q3237833 Q3211336 Q52897 Q2006011 Q165916 Q976846 Q10515113 Q10690966 Q15138129 Q4405311 Q6144946 Q10515175 Q2005518 Q10515201 Q7869705 Q4384713 Q10515013 Q1789356 Q7872657 Q5634552 Q975988 Q6144738 Q10515064 Q616899 Q2471518 Q7874656 Q922727 Q5501999 Q5501991 Q5501995 Q503453 Q1778502 Q1787992 Q1783702 Q4352822 Q1815806 Q15104547 Q508531 Q1596193 Q11323769 Q10513166 Q7874158 Q699713 Q1249407 Q10515233 Q1545471 Q2166261 Q5232273 Q631148 Q1061474 Q567967 Q7867378 Q604857 Q358966 Q2342404 Q7874470 Q506022 Q7871815 Q1761221 Q1578014 Q7874906 Q631540 Q1474340 Q21979631 Q1472052 Q5971096 Q6138564 Q6138562 Q15130681 Q2001200 Q6138393 Q5633432 Q1631200 Q1601564 Q5226794 Q1628755 Q15117029 Q2471257 Q10515173 Q10515176 Q1573507 Q7869984 Q710732 Q667833 Q820203 Q639642 Q1725498 Q1371659 Q993944 Q694531 Q1674076 Q1760185 Q7276440 Q6138349 Q7874949 Q3742738 Q10515277 Q11348852 Q844743 Q10513093 Q391061 Q10513097 Q1453075 Q205637 Q10513251 Q2093829 Q10513252 Q1973096 Q1437413 Q510214 Q1575297 Q1356922 Q4346742 Q1287639 Q632457 Q1739268 Q15129478 Q688771 Q2005990 Q174818 Q204342 Q5636039 Q5636031 Q5636034 Q2454760 Q1444474 Q1359363 Q217132 Q10515189 Q10515188 Q6719921 Q7869683 Q7869682 Q10515187 Q748373 Q1783713 Q919768 Q7875454 Q10513091 Q10515139 Q4352812 Q10515046 Q7408497 Q570993 Q463161 Q1363510 Q7871781 Q6144928 Q6138496 Q647787 Q1621675 Q935791 Q7874855 Q1683284 Q1379656 Q1052123 Q2117295 Q1971094 Q2001217 Q639502 Q663075 Q5971155 Q1380250
(c(Q2235308),P520,c(Q81103))
action count
action approx
action find_tuple_counts
relation P520
type Q2235308
type Q81103
action count
action filter_type
action find
entity Q5970896
relation P520
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?o ) WHERE { ?r property:P520 ?i . ?r rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q81103 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q5970896 property:P520 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?o = ?s ) }
Altair class training ship Cigogne USS Pasadena USS Pennsylvania USS La Jolla USS Wasp USS Sam Houston USS Lewis and Clark HMS Sprängaren HMS Näcken HMS Djärv Tarawa-class amphibious assault ship USS Michigan USS Seahorse USS Philadelphia USS Ohio USS Cheyenne France USS Aspro USS Honolulu HMS Iron Duke HMS Vanguard Kirov-class battlecruiser USS Dallas USS Gurnard Kresta I-class cruiser USS George Washington USS Tautog HMS Forester (1911) HMS Wasa Indian HMS Västergötland USS Sturgeon HMS Najad HMS Munter USS Maryland HMS Altair USS SC-18 HMS St Albans HMS Hurtig USS Samuel B. Roberts USS John C. Calhoun USS Wyoming HMS Rapp USS Memphis HMS Drottning Victoria Ukrainian submarine Zaporizhzhia HMS Sverige USS Ray USS Baton Rouge HNLMS Walrus USS Agamenticus USS Haddock USS Alaska USS Bainbridge USS Boston USS John Marshall USS Tucson USS Francis Scott Key HMS Gotland Ejdern-class sonobuoy vessel USS Albuquerque Grisha class corvette USS Leahy USS Newport News HMS Astrea USS Maine Kanin-class destroyer HMS Bulwark HMS Spårö USS Bremerton USS James Madison Kashin-class destroyer USS Florida USS Daniel Boone HMS Sjöbjörnen HMS Sjöhunden USS Spadefish USS Scranton USS Columbus USS Henry L. Stimson USS Henry Clay USS Columbia USS L. Mendel Rivers USS Benjamin Franklin Saphir USS West Virginia HMS Stolt USS Buffalo USS Narwhal MV Cape Ducato USS Bancroft K-222 USS Helena Bravo-class submarine USS Birmingham USS Bergall Sovremennyy-class destroyer USS Batfish Turya-class torpedo boat USS Toledo USS Santa Fe HMS Claes Uggla HMS Dreadnought Nanuchka class corvette HMS Mode USS Drum USS Charlotte USS Pintado USS Harry S. Truman HNLMS Abraham Crijnssen USS Sea Devil HMS Sjöhästen SMS Dresden USS Asheville USS Will Rogers USS Ramage USS Guitarro USS Abraham Lincoln USS Theodore Roosevelt USS Kentucky Kiev-class aircraft carrier USS Woodrow Wilson HMS Östergötland HMS Modig German submarine U-361 HMS Ajax USS Key West Kortenaer-class frigate Sverige-class coastal defence ship Kresta II-class cruiser USS Mariano G. Vallejo USS Greeneville USS Daly USS Nathan Hale USS Cincinnati USS Bearss HMS Ocean (L12) USS Finback USS Sand Lance Soviet command ship SSV-33 USS Providence Steregushchy class corvette USS Olympia USS Sam Rayburn USS Silversides USS James K. Polk HMS Sjöormen HMS Sturkö USS Parche USS Rhode Island USS Houston USCGC Burton Island French battleship Liberté Äran-class coastal defence ship HMS Gustav V USS Annapolis USS Montpelier USS Grayling HMS Sjölejonet Tapper-class patrol craft Topaz HMS Psilander USS Casimir Pulaski HMS Svensksund USS Baltimore HMS Trygg USS George Washington Carver USS Patrick Henry HMS Magne USS Omaha USS Pargo HMS Sylvia USS Puffer USS Billfish HMS Orädd USS City of Corpus Christi USS Von Steuben USS Tecumseh Type 22 frigate French battleship Vérité French battleship Démocratie French battleship Justice USS Kamehameha USS Nebraska USS Tennessee USS Salt Lake City HMS Tirfing Stenka class patrol boat Aigrette USS Nevada USS Glenard P. Lipscomb USS Nathanael Greene HMS Dristig USS Simon Bolivar Parchim class corvette USS Miami HMS Vargen Type 42 destroyer USS Los Angeles USS Bluefish Bora-class guided missile hovercraft Invincible-class aircraft carrier USS Chicago USS Archerfish USS Boise Kuznetsov-class aircraft carrier Japanese submarine I-168 USS Sunfish USS Arizona USS Milwaukee USS Alabama USS California USS Tunny USS Thomas Jefferson USS Ethan Allen Project 03160 Raptor USS Springfield USS William H. Bates USS John Adams USS Alexander Hamilton Rubis USS Jefferson City USS Cavalla HMS Montrose Kara-class cruiser USS Atlanta USS Hawkbill USS Mississippi Émeraude USS Stonewall Jackson HMS Svea HMS Sveparen USS Minneapolis–Saint Paul USS Hammerhead HMS Glowworm USS Daniel Webster USS Andrew Jackson HMS Endurance USS Louisiana Pauk class corvette USS San Juan Koni-class frigate USS Augusta USS Portsmouth RFA Cardigan Bay USS Lapon USS Ulysses S. Grant HMS Trossö HMS Ärlig USS Lewis B. Puller USS Robert E. Lee HMS Arcturus Kirov-class cruiser HMS Argo USS Hampton Krivak-class frigate HMS Hälsingland USS Tullibee HMS Händig USS Henry M. Jackson USS Jacksonville USS Alexandria USS Washington (BB-56) Japanese destroyer Murasame USS Lafayette USS Groton USS Thomas A. Edison Norrköping-class missile boat Opale Tarantul class corvette USS Albany USS Hyman G. Rickover USS Enterprise HMS Uppland HMS Halland HMS Orion Russian submarine Yury Dolgorukiy HMS Queen Elizabeth Slava class cruiser USS George H.W. Bush HMS Tapper HMS Sökaren HMS Protector USS George C. Marshall USS George Bancroft HMS Södermanland USS Topeka USS Phoenix USS New York City USS Whale HMS Antares HMS Springaren HMS Äran HMS Nordkaparen USS America USS James Monroe USS Nimitz Komar class missile boat USS Michael Monsoor USS Flying Fish USS Queenfish Osa class missile boats Sarancha class missile boat USS San Francisco USS Trepang USS Georgia USS Indianapolis Udaloy-class destroyer USS Hartford USS Oklahoma City USS Pittsburgh USS Abraham Lincoln USS Richard B. Russell USS Pogy USS Louisville
316
action count
action approx
action find_tuple_counts
relation armament
type ship type
type cannon
action count
action filter_type
action find
entity USS Ray
relation armament
type ship type
[{'concept': 'ship type'}, 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?o ) WHERE { ?r property:armament ?i . ?r rdf:type ontology:ship_type . ?i rdf:type ontology:cannon } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:USS_Ray property:armament ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?o = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q16641
P1532
Q502895
USER
How many people play for Germany or American Samoa ?
(c(Q502895),P1532,Q183) (c(Q502895),P1532,Q16641)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q16641
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q183'] [{'concept': 'Q502895'}, 'P1532', 'Q16641']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:Q502895 . ?f property:P1532 resource:Q16641 } UNION { ?f property:P1532 resource:Q183 . ?f rdf:type ontology:Q502895 } }
Germany American Samoa
action count
action union
action filter_type
action find_reverse
entity Germany
relation country for sport
type common name
action filter_type
action find_reverse
entity American Samoa
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Germany'] [{'concept': 'common name'}, 'country for sport', 'American Samoa']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:common_name . ?f property:country_for_sport resource:American_Samoa } UNION { ?f property:country_for_sport resource:Germany . ?f rdf:type ontology:common_name } }
[]
common name
SYSTEM
31
Q23933662 Q11771919 Q25768269 Q9368268 Q22417389 Q9257469 Q17517599 Q14918196 Q23480023 Q23714989 Q24283241 Q17544413 Q24442448 Q16040122 Q21705952 Q3530137 Q23041689 Q23418556 Q1078224 Q23323661 Q25841177 Q1331837 Q24846847 Q25931172 Q1573540 Q24448038 Q9178633 Q1499347 Q22969617 Q22807080 Q23090951
(c(Q502895),P1532,Q183) (c(Q502895),P1532,Q16641)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q16641
relation P1532
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q183'] [{'concept': 'Q502895'}, 'P1532', 'Q16641']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:Q502895 . ?f property:P1532 resource:Q16641 } UNION { ?f property:P1532 resource:Q183 . ?f rdf:type ontology:Q502895 } }
Clemens Bleistein Maya Rehberg Laura Muller Varg Königsmark Julian Flügel Faauuga Muagututia Timo Benitz Anjuli Knäsche Martin Vogel  Xenia Stolz Friedelinde Petershofen Max Hess Lisa Mayer Harald Demuth Kai Karsten Tobias Giehl Joachim Dehmel Chantal Butzek Christa Wiese Tobias Dahm Nadine Gonska Ellen Kiessling Rene Stauss Janina Kölsch Ralf Jaros Anna Felzmann Brad Kiltz Max Hopp Konstanze Klosterhalfen Annika Drazek Alexandra Wester
31
action count
action union
action filter_type
action find_reverse
entity Germany
relation country for sport
type common name
action filter_type
action find_reverse
entity American Samoa
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Germany'] [{'concept': 'common name'}, 'country for sport', 'American Samoa']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f rdf:type ontology:common_name . ?f property:country_for_sport resource:American_Samoa } UNION { ?f property:country_for_sport resource:Germany . ?f rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P1376
Q56061
USER
Which administrative territories are the county seat for Germany ?
(c(Q56061),P1376,Q183)
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?o WHERE { ?o property:P1376 resource:Q183 . ?o rdf:type ontology:Q56061 }
Germany
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?o WHERE { ?o property:capital_of resource:Germany . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
(c(Q56061),P1376,Q183)
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[ANSWERS] are the county seat for Germany
[{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?o WHERE { ?o property:P1376 resource:Q183 . ?o rdf:type ontology:Q56061 }
Berlin Bonn
Berlin and Bonn are the county seat for Germany
Berlin Bonn
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?o WHERE { ?o property:capital_of resource:Germany . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P112
Q180516
USER
Which room was established by Germany ?
(c(Q180516),P112,Q183)
action filter_type
action find_reverse
entity Q183
relation P112
type Q180516
[{'concept': 'Q180516'}, 'P112', 'Q183']
SELECT DISTINCT ?k WHERE { ?k property:P112 resource:Q183 . ?k rdf:type ontology:Q180516 }
Germany
action filter_type
action find_reverse
entity Germany
relation founder
type room
[{'concept': 'room'}, 'founder', 'Germany']
SELECT DISTINCT ?k WHERE { ?k property:founder resource:Germany . ?k rdf:type ontology:room }
[]
room
Q141720
SYSTEM
European Air Transport Command
Q141720
(c(Q180516),P112,Q183)
action filter_type
action find_reverse
entity Q183
relation P112
type Q180516
Germany [ANSWER] was established by Germany
[{'concept': 'Q180516'}, 'P112', 'Q183']
SELECT DISTINCT ?k WHERE { ?k property:P112 resource:Q183 . ?k rdf:type ontology:Q180516 }
European Air Transport Command
Germany European Air Transport Command was established by Germany
European Air Transport Command
action filter_type
action find_reverse
entity Germany
relation founder
type room
[{'concept': 'room'}, 'founder', 'Germany']
SELECT DISTINCT ?k WHERE { ?k property:founder resource:Germany . ?k rdf:type ontology:room }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P6
Q502895
USER
Which people are the head of government of that political territory ?
(Q141720,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
['Q141720', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P6 ?y . ?y rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of government
type common name
['European Air Transport Command', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:head_of_government ?y . ?y rdf:type ontology:common_name }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q141720,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
[ANSWERS] are the head of government of that political territory
['Q141720', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P6 ?y . ?y rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Konrad Adenauer, Willy Brandt and Angela Merkel are the head of government of that political territory
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity Germany
relation head of government
type common name
['European Air Transport Command', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:head_of_government ?y . ?y rdf:type ontology:common_name }
[]