Simple Question (Direct)
Simple Question
Q7816555
P19
Q56061
USER
Where was Tom Lee born ?
(Q7816555,P19,c(Q56061))
action filter_type
action find
entity Q7816555
relation P19
type Q56061
['Q7816555', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q7816555 property:P19 ?n }
Tom Lee
action filter_type
action find
entity Tom Lee
relation place of birth
type administrative territorial entity
['Tom Lee', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Tom_Lee property:place_of_birth ?n }
[]
administrative territorial entity
Q975
SYSTEM
San Antonio
Q975
(Q7816555,P19,c(Q56061))
action filter_type
action find
entity Q7816555
relation P19
type Q56061
Tom Lee was born in [ANSWER]
['Q7816555', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q7816555 property:P19 ?n }
San Antonio
Tom Lee was born in San Antonio
San Antonio
action filter_type
action find
entity Tom Lee
relation place of birth
type administrative territorial entity
['Tom Lee', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Tom_Lee property:place_of_birth ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q975
P127
Q811430
USER
Which constructions belongs to that administrative territory ?
(c(Q811430),P127,Q975)
action filter_type
action find_reverse
entity Q975
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q975']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q811430 . ?w property:P127 resource:Q975 }
San Antonio
action filter_type
action find_reverse
entity San Antonio
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'San Antonio']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:construction . ?w property:owned_by resource:San_Antonio }
[]
construction
Q1618347 Q1145169
SYSTEM
Alamodome, HemisFair Arena
Q1618347 Q1145169
(c(Q811430),P127,Q975)
action filter_type
action find_reverse
entity Q975
relation P127
type Q811430
[ANSWERS] belong to that administrative territory
[{'concept': 'Q811430'}, 'P127', 'Q975']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q811430 . ?w property:P127 resource:Q975 }
Alamodome HemisFair Arena
Alamodome and HemisFair Arena belong to that administrative territory
Alamodome HemisFair Arena
action filter_type
action find_reverse
entity San Antonio
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'San Antonio']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:construction . ?w property:owned_by resource:San_Antonio }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1618347
P193
Q43229
USER
Which organization is the building contractor of that construction ?
(Q1618347,P193,c(Q43229))
action filter_type
action find
entity Q1618347
relation P193
type Q43229
['Q1618347', 'P193', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q43229 . resource:Q1618347 property:P193 ?v }
Alamodome
action filter_type
action find
entity Alamodome
relation main building contractor
type organization
['Alamodome', 'main building contractor', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:organization . resource:Alamodome property:main_building_contractor ?v }
[]
organization
Clarification for simple ques.
Q1145169
SYSTEM
Did you mean HemisFair Arena ?
Q1618347 Q1145169
(Q1618347,P193,c(Q43229)) (Q1145169,P193,c(Q43229))
[ANSWER]
['Q1618347', 'P193', {'concept': 'Q43229'}] ['Q1145169', 'P193', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q43229 . resource:Q1618347 property:P193 ?v }
Alamodome HemisFair Arena
Did you mean HemisFair Arena ?
HemisFair Arena
['Alamodome', 'main building contractor', {'concept': 'organization'}] ['HemisFair Arena', 'main building contractor', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:organization . resource:Alamodome property:main_building_contractor ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant Alamodome. Could you tell me the answer for that?
(Q1618347,P193,c(Q43229))
Q1618347
['Q1618347', 'P193', {'concept': 'Q43229'}]
['Alamodome', 'main building contractor', {'concept': 'organization'}]
[]
Q5943935
SYSTEM
Hunt Construction Group
Q5943935
(Q1618347,P193,c(Q43229))
action filter_type
action find
entity Q1618347
relation P193
type Q43229
[ANSWER] is the building contractor of that construction
['Q1618347', 'P193', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q43229 . resource:Q1618347 property:P193 ?v }
Hunt Construction Group
Hunt Construction Group is the building contractor of that construction
Hunt Construction Group
action filter_type
action find
entity Alamodome
relation main building contractor
type organization
['Alamodome', 'main building contractor', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:organization . resource:Alamodome property:main_building_contractor ?v }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3487936 Q1145169
P27 P17
Q15617994
USER
Which administrative territories are HemisFair Arena present in or do Nils Molander belong to ?
OR((Q1145169,P17,c(Q15617994)), (Q3487936,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1145169
relation P17
action find
entity Q3487936
relation P27
type Q15617994
{'OR': [['Q1145169', 'P17', {'concept': 'Q15617994'}], ['Q3487936', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q3487936 property:P27 ?y } UNION { resource:Q1145169 property:P17 ?y } } }
Nils Molander HemisFair Arena
action filter_type
action union
action find
entity HemisFair Arena
relation country
action find
entity Nils Molander
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['HemisFair Arena', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nils Molander', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nils_Molander property:country_of_citizenship ?y } UNION { resource:HemisFair_Arena property:country ?y } } }
[]
designation for an administrative territorial entity
Q30 Q34
SYSTEM
United States of America, Sweden
Q30 Q34
OR((Q1145169,P17,c(Q15617994)), (Q3487936,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1145169
relation P17
action find
entity Q3487936
relation P27
type Q15617994
HemisFair Arena are belong to the [ANSWERS]
{'OR': [['Q1145169', 'P17', {'concept': 'Q15617994'}], ['Q3487936', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q3487936 property:P27 ?y } UNION { resource:Q1145169 property:P17 ?y } } }
United States of America Sweden
HemisFair Arena are belong to the United States of America and Sweden
United States of America Sweden
action filter_type
action union
action find
entity HemisFair Arena
relation country
action find
entity Nils Molander
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['HemisFair Arena', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nils Molander', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nils_Molander property:country_of_citizenship ?y } UNION { resource:HemisFair_Arena property:country ?y } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q839578
P17
Q11024
USER
Are Group dynamics situated in those administrative territories ?
(Q839578,P17,Q30) (Q839578,P17,Q34)
action is_in
entity prev_answer
action find
entity Q839578
relation P17
['Q839578', 'P17', 'Q30'] ['Q839578', 'P17', 'Q34']
ASK WHERE { resource:Q839578 property:P17 ?w . VALUES ( ?w ) { ( resource:Q30 ) ( resource:Q34 ) } }
Group dynamics
action is_in
entity prev_answer
action find
entity Group dynamics
relation country
['Group dynamics', 'country', 'United States of America'] ['Group dynamics', 'country', 'Sweden']
ASK WHERE { resource:Group_dynamics property:country ?w . VALUES ( ?w ) { ( resource:United_States_of_America ) ( resource:Sweden ) } }
[]
communication
SYSTEM
NO
(Q839578,P17,Q30) (Q839578,P17,Q34)
action is_in
entity prev_answer
action find
entity Q839578
relation P17
[ANSWER]
['Q839578', 'P17', 'Q30'] ['Q839578', 'P17', 'Q34']
ASK WHERE { resource:Q839578 property:P17 ?w . VALUES ( ?w ) { ( resource:Q30 ) ( resource:Q34 ) } }
No
action is_in
entity prev_answer
action find
entity Group dynamics
relation country
['Group dynamics', 'country', 'United States of America'] ['Group dynamics', 'country', 'Sweden']
ASK WHERE { resource:Group_dynamics property:country ?w . VALUES ( ?w ) { ( resource:United_States_of_America ) ( resource:Sweden ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:P530 ?z . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?t ) WHERE { ?s property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?t = ?r ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:diplomatic_relation ?z . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?t ) WHERE { ?s property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?t = ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] is known to have diplomatic connections with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:P530 ?z . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?t ) WHERE { ?s property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?t = ?r ) }
Georgia
Georgia is known to have diplomatic connections with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?q ) WHERE { ?d property:diplomatic_relation ?z . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?t ) WHERE { ?s property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?t = ?r ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q230 Q4773661
P27
Q502895
USER
Is Anthony Wall a citizen of that administrative territory ?
(Q4773661,P27,Q230)
action is_in
entity Q4773661
action find
entity Q230
relation P27
['Q4773661', 'P27', 'Q230']
ASK WHERE { resource:Q230 property:P27 resource:Q4773661 }
Georgia Anthony Wall
action is_in
entity Anthony Wall
action find
entity Georgia
relation country of citizenship
['Anthony Wall', 'country of citizenship', 'Georgia']
ASK WHERE { resource:Georgia property:country_of_citizenship resource:Anthony_Wall }
[]
common name
SYSTEM
NO
(Q4773661,P27,Q230)
action is_in
entity Q4773661
action find
entity Q230
relation P27
[ANSWER]
['Q4773661', 'P27', 'Q230']
ASK WHERE { resource:Q230 property:P27 resource:Q4773661 }
No
action is_in
entity Anthony Wall
action find
entity Georgia
relation country of citizenship
['Anthony Wall', 'country of citizenship', 'Georgia']
ASK WHERE { resource:Georgia property:country_of_citizenship resource:Anthony_Wall }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P163
Q14660
USER
What is associated with Sweden ?
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?b WHERE { resource:Q34 property:P163 ?b . ?b rdf:type ontology:Q14660 }
Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?b WHERE { resource:Sweden property:flag ?b . ?b rdf:type ontology:flag }
[]
flag
Q81286
SYSTEM
flag of Sweden
Q81286
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
The [ANSWER] is associated with Sweden
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?b WHERE { resource:Q34 property:P163 ?b . ?b rdf:type ontology:Q14660 }
flag of Sweden
The flag of Sweden is associated with Sweden
flag of Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?b WHERE { resource:Sweden property:flag ?b . ?b rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q117
Q14660
USER
And what about Ghana?
(Q117,P163,c(Q14660))
action filter_type
action find
entity Q117
relation P163
type Q14660
['Q117', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?s WHERE { resource:Q117 property:P163 ?s . ?s rdf:type ontology:Q14660 }
Ghana
action filter_type
action find
entity Ghana
relation flag
type flag
['Ghana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?s WHERE { resource:Ghana property:flag ?s . ?s rdf:type ontology:flag }
[]
flag
Q160676
SYSTEM
Flag of Ghana
Q160676
(Q117,P163,c(Q14660))
action filter_type
action find
entity Q117
relation P163
type Q14660
[ANSWER]
['Q117', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?s WHERE { resource:Q117 property:P163 ?s . ?s rdf:type ontology:Q14660 }
Flag of Ghana
Flag of Ghana
action filter_type
action find
entity Ghana
relation flag
type flag
['Ghana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?s WHERE { resource:Ghana property:flag ?s . ?s rdf:type ontology:flag }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q811430 Q3305213 Q11060274
USER
Which constructions are depicted in atleast 22 paintings and prints ?
(c(Q3305213)|c(Q11060274),P180,c(Q811430))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q811430
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q811430
type Q11060274
value 22
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q811430'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?p WHERE { { ?o property:P180 ?p . ?p rdf:type ontology:Q811430 . ?o rdf:type ontology:Q3305213 } UNION { ?o property:P180 ?p . ?p rdf:type ontology:Q811430 . ?o rdf:type ontology:Q11060274 } } GROUP BY ?p } . FILTER ( ?g >= 22 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type construction
type painting
action find_reverse_tuple_counts
relation depicts
type construction
type print
value 22
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'construction'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?p WHERE { { ?o property:depicts ?p . ?p rdf:type ontology:construction . ?o rdf:type ontology:painting } UNION { ?o property:depicts ?p . ?p rdf:type ontology:construction . ?o rdf:type ontology:print } } GROUP BY ?p } . FILTER ( ?g >= 22 ) }
[]
construction painting print
Q12280 Q109607
SYSTEM
bridge, ruins
Q12280 Q109607
(c(Q3305213)|c(Q11060274),P180,c(Q811430))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q811430
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q811430
type Q11060274
value 22
The [ANSWERS] are depicted in atleast 22 paintings and prints
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q811430'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?p WHERE { { ?o property:P180 ?p . ?p rdf:type ontology:Q811430 . ?o rdf:type ontology:Q3305213 } UNION { ?o property:P180 ?p . ?p rdf:type ontology:Q811430 . ?o rdf:type ontology:Q11060274 } } GROUP BY ?p } . FILTER ( ?g >= 22 ) }
bridge ruins
The bridge and ruins are depicted in atleast 22 paintings and prints
bridge ruins
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type construction
type painting
action find_reverse_tuple_counts
relation depicts
type construction
type print
value 22
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'construction'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) ?p WHERE { { ?o property:depicts ?p . ?p rdf:type ontology:construction . ?o rdf:type ontology:painting } UNION { ?o property:depicts ?p . ?p rdf:type ontology:construction . ?o rdf:type ontology:print } } GROUP BY ?p } . FILTER ( ?g >= 22 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q811430 Q3305213 Q1792379
USER
How many constructions are expressed in approximately 8 paintings or art genres ?
(c(Q3305213)|c(Q1792379),P180,c(Q811430))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q811430
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q811430
type Q1792379
value 8
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?o WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?h rdf:type ?w } GROUP BY ?o } . FILTER ( ?j = 8 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type construction
type painting
action find_reverse_tuple_counts
relation depicts
type construction
type art genre
value 8
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?o WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:art_genre ) } . ?h rdf:type ?w } GROUP BY ?o } . FILTER ( ?j = 8 ) }
[]
construction painting art genre
SYSTEM
2
Q12280 Q41176
(c(Q3305213)|c(Q1792379),P180,c(Q811430))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q811430
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q811430
type Q1792379
value 8
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q811430'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?o WHERE { VALUES ( ?w ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?h rdf:type ?w } GROUP BY ?o } . FILTER ( ?j = 8 ) }
bridge building
2
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type construction
type painting
action find_reverse_tuple_counts
relation depicts
type construction
type art genre
value 8
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'construction'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?o WHERE { VALUES ( ?w ) { ( ontology:painting ) ( ontology:art_genre ) } . ?h rdf:type ?w } GROUP BY ?o } . FILTER ( ?j = 8 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q408
P530
Q1048835
USER
How many political territories have diplomatic associations with Sweden and Australia ?
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q1048835 . ?j property:P530 resource:Q34 . ?j rdf:type ontology:Q1048835 }
Sweden Australia
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation resource:Sweden . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q183
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q1048835 . ?j property:P530 resource:Q34 . ?j rdf:type ontology:Q1048835 }
Canada Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation resource:Sweden . ?j rdf:type ontology:political_territorial_entity }
[]