Simple Question (Direct)
Simple Question
Q17632416
P27
Q15617994
USER
Which administrative territory is Larbi Chebbak a civilian of ?
(Q17632416,P27,c(Q15617994))
action filter_type
action find
entity Q17632416
relation P27
type Q15617994
['Q17632416', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q17632416 property:P27 ?l }
Larbi Chebbak
action filter_type
action find
entity Larbi Chebbak
relation country of citizenship
type designation for an administrative territorial entity
['Larbi Chebbak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Larbi_Chebbak property:country_of_citizenship ?l }
[]
designation for an administrative territorial entity
Q1028
SYSTEM
Morocco
Q1028
(Q17632416,P27,c(Q15617994))
action filter_type
action find
entity Q17632416
relation P27
type Q15617994
[ANSWER] is Larbi Chebbak a civilian of
['Q17632416', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q17632416 property:P27 ?l }
Morocco
Morocco is Larbi Chebbak a civilian of
Morocco
action filter_type
action find
entity Larbi Chebbak
relation country of citizenship
type designation for an administrative territorial entity
['Larbi Chebbak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Larbi_Chebbak property:country_of_citizenship ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1028
P138
Q2712963
USER
What is that administrative territory named after ?
(Q1028,P138,c(Q2712963))
action filter_type
action find
entity Q1028
relation P138
type Q2712963
['Q1028', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ?j WHERE { resource:Q1028 property:P138 ?j . ?j rdf:type ontology:Q2712963 }
Morocco
action filter_type
action find
entity Morocco
relation named after
type abstract noun
['Morocco', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ?j WHERE { resource:Morocco property:named_after ?j . ?j rdf:type ontology:abstract_noun }
[]
abstract noun
Q679
SYSTEM
west
Q679
(Q1028,P138,c(Q2712963))
action filter_type
action find
entity Q1028
relation P138
type Q2712963
That administrative territory named after is the [ANSWER]
['Q1028', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ?j WHERE { resource:Q1028 property:P138 ?j . ?j rdf:type ontology:Q2712963 }
west
That administrative territory named after is the west
west
action filter_type
action find
entity Morocco
relation named after
type abstract noun
['Morocco', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ?j WHERE { resource:Morocco property:named_after ?j . ?j rdf:type ontology:abstract_noun }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q679 Q18352
P138
Q15617994
USER
Is Baldissero d'Alba named after that abstract noun ?
(Q18352,P138,Q679)
action is_in
entity Q18352
action find
entity Q679
relation P138
['Q18352', 'P138', 'Q679']
ASK WHERE { resource:Q679 property:P138 resource:Q18352 }
west Baldissero d'Alba
action is_in
entity Baldissero d'Alba
action find
entity west
relation named after
["Baldissero d'Alba", 'named after', 'west']
ASK WHERE { resource:west property:named_after resource:Baldissero_d'Alba }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q18352,P138,Q679)
action is_in
entity Q18352
action find
entity Q679
relation P138
[ANSWER]
['Q18352', 'P138', 'Q679']
ASK WHERE { resource:Q679 property:P138 resource:Q18352 }
No
action is_in
entity Baldissero d'Alba
action find
entity west
relation named after
["Baldissero d'Alba", 'named after', 'west']
ASK WHERE { resource:west property:named_after resource:Baldissero_d'Alba }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1028
P137
Q728 Q3084961
USER
How many weapons or product linings were operated by Morocco ?
(c(Q728),P137,Q1028) (c(Q3084961),P137,Q1028)
action count
action union
action filter_type
action find_reverse
entity Q1028
relation P137
type Q728
action filter_type
action find_reverse
entity Q1028
relation P137
type Q3084961
[{'concept': 'Q728'}, 'P137', 'Q1028'] [{'concept': 'Q3084961'}, 'P137', 'Q1028']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q728 ) ( ontology:Q3084961 ) } }
Morocco
action count
action union
action filter_type
action find_reverse
entity Morocco
relation operator
type weapon
action filter_type
action find_reverse
entity Morocco
relation operator
type product lining
[{'concept': 'weapon'}, 'operator', 'Morocco'] [{'concept': 'product lining'}, 'operator', 'Morocco']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:weapon ) ( ontology:product_lining ) } }
[]
weapon product lining
SYSTEM
2
Q313740 Q676888
(c(Q728),P137,Q1028) (c(Q3084961),P137,Q1028)
action count
action union
action filter_type
action find_reverse
entity Q1028
relation P137
type Q728
action filter_type
action find_reverse
entity Q1028
relation P137
type Q3084961
[ANSWER]
[{'concept': 'Q728'}, 'P137', 'Q1028'] [{'concept': 'Q3084961'}, 'P137', 'Q1028']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q728 ) ( ontology:Q3084961 ) } }
Alpha Jet AASM
2
action count
action union
action filter_type
action find_reverse
entity Morocco
relation operator
type weapon
action filter_type
action find_reverse
entity Morocco
relation operator
type product lining
[{'concept': 'weapon'}, 'operator', 'Morocco'] [{'concept': 'product lining'}, 'operator', 'Morocco']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:weapon ) ( ontology:product_lining ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1028 Q664
P530
Q1048835
USER
How many political territories have diplomatic relations with Morocco and New Zealand ?
(c(Q1048835),P530,Q1028) (c(Q1048835),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q1028
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q1028'] [{'concept': 'Q1048835'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P530 resource:Q1028 . ?t rdf:type ontology:Q1048835 . ?t property:P530 resource:Q664 . ?t rdf:type ontology:Q1048835 }
Morocco New Zealand
action count
action intersection
action filter_type
action find_reverse
entity Morocco
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Morocco'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:diplomatic_relation resource:Morocco . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation resource:New_Zealand . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q183
(c(Q1048835),P530,Q1028) (c(Q1048835),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q1028
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q1028'] [{'concept': 'Q1048835'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P530 resource:Q1028 . ?t rdf:type ontology:Q1048835 . ?t property:P530 resource:Q664 . ?t rdf:type ontology:Q1048835 }
Canada Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Morocco
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Morocco'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:diplomatic_relation resource:Morocco . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation resource:New_Zealand . ?t rdf:type ontology:political_territorial_entity }
[]