Simple Question (Direct)
Simple Question
Q3943960
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Sirous Ghayeghran ?
(Q3943960,P27,c(Q15617994))
action filter_type
action find
entity Q3943960
relation P27
type Q15617994
['Q3943960', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3943960 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Sirous Ghayeghran
action filter_type
action find
entity Sirous Ghayeghran
relation country of citizenship
type designation for an administrative territorial entity
['Sirous Ghayeghran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Sirous_Ghayeghran property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q3943960,P27,c(Q15617994))
action filter_type
action find
entity Q3943960
relation P27
type Q15617994
[ANSWER]
['Q3943960', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3943960 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Iran
Iran
action filter_type
action find
entity Sirous Ghayeghran
relation country of citizenship
type designation for an administrative territorial entity
['Sirous Ghayeghran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Sirous_Ghayeghran property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P706
Q151885
USER
Which concept is located in that administrative territory ?
(c(Q151885),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q794']
SELECT DISTINCT ?h WHERE { ?h property:P706 resource:Q794 . ?h rdf:type ontology:Q151885 }
Iran
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?h WHERE { ?h property:located_on_terrain_feature resource:Iran . ?h rdf:type ontology:concept }
[]
concept
Q647858
SYSTEM
Zarzian culture
Q647858
(c(Q151885),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q151885
[ANSWER]
[{'concept': 'Q151885'}, 'P706', 'Q794']
SELECT DISTINCT ?h WHERE { ?h property:P706 resource:Q794 . ?h rdf:type ontology:Q151885 }
Zarzian culture
Zarzian culture
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?h WHERE { ?h property:located_on_terrain_feature resource:Iran . ?h rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P137
Q3084961
USER
Which product linings can be described as facility operator of that administrative territory ?
(c(Q3084961),P137,Q647858)
action filter_type
action find_reverse
entity Q794
relation P137
type Q3084961
[{'concept': 'Q3084961'}, 'P137', 'Q647858']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q794 . ?h rdf:type ontology:Q3084961 }
Iran
action filter_type
action find_reverse
entity Iran
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Zarzian culture']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Iran . ?h rdf:type ontology:product_lining }
[]
product lining
Q142549 Q933767
SYSTEM
Il-76, Hawk 75
Q142549 Q933767
(c(Q3084961),P137,Q647858)
action filter_type
action find_reverse
entity Q794
relation P137
type Q3084961
[ANSWERS]
[{'concept': 'Q3084961'}, 'P137', 'Q647858']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q794 . ?h rdf:type ontology:Q3084961 }
Il-76 Hawk 75
Il-76 Hawk 75
action filter_type
action find_reverse
entity Iran
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Zarzian culture']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Iran . ?h rdf:type ontology:product_lining }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P137
Q15617994
USER
How many administrative territories operates that product lining ?
(Q933767,P137,c(Q15617994))
['Q933767', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q933767 property:Q131030 ?z . ?z rdf:type ontology:Q15617994 }
['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hawk_75 property:operator ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q142549
SYSTEM
Did you mean Il-76 ?
(Q142549,P137,c(Q15617994)) (Q933767,P137,c(Q15617994))
[ANSWER]
['Q142549', 'P137', {'concept': 'Q15617994'}] ['Q933767', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q933767 property:Q131030 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Il-76 ?
Il-76
['Il-76', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hawk_75 property:operator ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Hawk 75. Could you tell me the answer for that?
(Q933767,P137,c(Q15617994))
Q933767
['Q933767', 'P137', {'concept': 'Q15617994'}]
['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
13
Q142 Q20 Q45 Q55 Q145 Q155 Q794 Q33 Q419 Q30 Q668 Q869 Q414
(Q933767,P137,c(Q15617994))
[ANSWER]
['Q933767', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q933767 property:Q131030 ?z . ?z rdf:type ontology:Q15617994 }
France Norway Portugal Netherlands United Kingdom Brazil Iran Finland Peru United States of America India Thailand Argentina
13
['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hawk_75 property:operator ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q30038 Q647858
P361
Q1790144
USER
Which units of time are Zarzian culture or 2000s BCE a component of ?
OR((Q647858,P361,c(Q1790144)), (Q30038,P361,c(Q1790144)))
action filter_type
action union
action find
entity Q647858
relation P361
action find
entity Q30038
relation P361
type Q1790144
{'OR': [['Q647858', 'P361', {'concept': 'Q1790144'}], ['Q30038', 'P361', {'concept': 'Q1790144'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q647858 property:P361 ?i } UNION { resource:Q30038 property:P361 ?i } } . ?i rdf:type ontology:Q1790144 }
2000s BCE Zarzian culture
action filter_type
action union
action find
entity Zarzian culture
relation part of
action find
entity 2000s BCE
relation part of
type unit of time
{'OR': [['Zarzian culture', 'part of', {'concept': 'unit of time'}], ['2000s BCE', 'part of', {'concept': 'unit of time'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Zarzian_culture property:part_of ?i } UNION { resource:2000s_BCE property:part_of ?i } } . ?i rdf:type ontology:unit_of_time }
[]
unit of time
Q205487 Q479505 Q44155
SYSTEM
21st century BC, Upper Paleolithic, Mesolithic
Q205487 Q479505 Q44155
OR((Q647858,P361,c(Q1790144)), (Q30038,P361,c(Q1790144)))
action filter_type
action union
action find
entity Q647858
relation P361
action find
entity Q30038
relation P361
type Q1790144
[ANSWERS]
{'OR': [['Q647858', 'P361', {'concept': 'Q1790144'}], ['Q30038', 'P361', {'concept': 'Q1790144'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q647858 property:P361 ?i } UNION { resource:Q30038 property:P361 ?i } } . ?i rdf:type ontology:Q1790144 }
21st century BC Upper Paleolithic Mesolithic
21st century BC Upper Paleolithic Mesolithic
action filter_type
action union
action find
entity Zarzian culture
relation part of
action find
entity 2000s BCE
relation part of
type unit of time
{'OR': [['Zarzian culture', 'part of', {'concept': 'unit of time'}], ['2000s BCE', 'part of', {'concept': 'unit of time'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Zarzian_culture property:part_of ?i } UNION { resource:2000s_BCE property:part_of ?i } } . ?i rdf:type ontology:unit_of_time }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P121
Q3084961 Q176799 Q46970
USER
Which product linings are operated by max number of military units or airlines ?
(c(Q176799)|c(Q46970),P121,c(Q3084961))
action argmax
action union
action find_reverse_tuple_counts
relation P121
type Q3084961
type Q176799
action find_reverse_tuple_counts
relation P121
type Q3084961
type Q46970
[[{'concept': 'Q176799'}, {'concept': 'Q46970'}], 'P121', {'concept': 'Q3084961'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { { ?c property:P121 ?s . ?s rdf:type ontology:Q3084961 . ?c rdf:type ontology:Q176799 } UNION { ?s rdf:type ontology:Q3084961 . ?c rdf:type ontology:Q46970 . ?c property:P121 ?s } } GROUP BY ?s } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P121 ?w . ?w rdf:type ontology:Q3084961 . ?v rdf:type ontology:Q176799 } UNION { ?v property:P121 ?w . ?w rdf:type ontology:Q3084961 . ?v rdf:type ontology:Q46970 } } GROUP BY ?w } } }
action argmax
action union
action find_reverse_tuple_counts
relation item operated
type product lining
type military unit
action find_reverse_tuple_counts
relation item operated
type product lining
type airline
[[{'concept': 'military unit'}, {'concept': 'airline'}], 'item operated', {'concept': 'product lining'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { { ?c property:item_operated ?s . ?s rdf:type ontology:product_lining . ?c rdf:type ontology:military_unit } UNION { ?s rdf:type ontology:product_lining . ?c rdf:type ontology:airline . ?c property:item_operated ?s } } GROUP BY ?s } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:item_operated ?w . ?w rdf:type ontology:product_lining . ?v rdf:type ontology:military_unit } UNION { ?v property:item_operated ?w . ?w rdf:type ontology:product_lining . ?v rdf:type ontology:airline } } GROUP BY ?w } } }
[]
product lining military unit airline
Q694456
SYSTEM
Saab 29 Tunnan
Q694456
(c(Q176799)|c(Q46970),P121,c(Q3084961))
action argmax
action union
action find_reverse_tuple_counts
relation P121
type Q3084961
type Q176799
action find_reverse_tuple_counts
relation P121
type Q3084961
type Q46970
[ANSWER]
[[{'concept': 'Q176799'}, {'concept': 'Q46970'}], 'P121', {'concept': 'Q3084961'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { { ?c property:P121 ?s . ?s rdf:type ontology:Q3084961 . ?c rdf:type ontology:Q176799 } UNION { ?s rdf:type ontology:Q3084961 . ?c rdf:type ontology:Q46970 . ?c property:P121 ?s } } GROUP BY ?s } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P121 ?w . ?w rdf:type ontology:Q3084961 . ?v rdf:type ontology:Q176799 } UNION { ?v property:P121 ?w . ?w rdf:type ontology:Q3084961 . ?v rdf:type ontology:Q46970 } } GROUP BY ?w } } }
Saab 29 Tunnan
Saab 29 Tunnan
action argmax
action union
action find_reverse_tuple_counts
relation item operated
type product lining
type military unit
action find_reverse_tuple_counts
relation item operated
type product lining
type airline
[[{'concept': 'military unit'}, {'concept': 'airline'}], 'item operated', {'concept': 'product lining'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?h ) WHERE { { ?c property:item_operated ?s . ?s rdf:type ontology:product_lining . ?c rdf:type ontology:military_unit } UNION { ?s rdf:type ontology:product_lining . ?c rdf:type ontology:airline . ?c property:item_operated ?s } } GROUP BY ?s } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:item_operated ?w . ?w rdf:type ontology:product_lining . ?v rdf:type ontology:military_unit } UNION { ?v property:item_operated ?w . ?w rdf:type ontology:product_lining . ?v rdf:type ontology:airline } } GROUP BY ?w } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q6537379
P180
Q151885 Q18783400 Q2342494
USER
Which concepts are expressed in lesser number of genres of sculpture and collectables than walking ?
(c(Q18783400)|c(Q2342494),P180,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q6537379
relation P180
type Q18783400
type Q2342494
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q18783400 ) } } . ?j property:P180 resource:Q6537379 } } . FILTER ( ?x < ?q ) }
walking
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action count
action filter_multi_types
action find_reverse
entity walking
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:genre_of_sculpture ) } } . ?j property:depicts resource:walking } } . FILTER ( ?x < ?q ) }
[]
concept genre of sculpture collectable
Q4964182 Q931260 Q12004621
SYSTEM
philosopher, murderer, fortune-teller
Q254508 Q193373 Q13381863 Q2304859 Q2472587 Q7743 Q188353 Q34023 Q454 Q177923 Q8436 Q14467155 Q177826 Q189829 Q48942 Q1968442 Q170430 Q482980 Q12004621 Q11513337 Q12773225 Q2207288 Q126236 Q15980704 Q273283 Q124216 Q703534 Q272735 Q17176618 Q38433 Q48282 Q113904 Q43616 Q1146843 Q1714828 Q2979 Q25443024 Q4964182 Q11399 Q40953 Q213449 Q527 Q877674 Q6388 Q203872 Q2083958 Q855091 Q2066131 Q3562775 Q931260 Q192581 Q18120029 Q18121798 Q876776 Q10843402 Q179637 Q5167661 Q3035707 Q1862087 Q1134237 Q10294 Q1125062 Q13382576 Q7234072
(c(Q18783400)|c(Q2342494),P180,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q6537379
relation P180
type Q18783400
type Q2342494
[ANSWERS]
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q18783400 ) } } . ?j property:P180 resource:Q6537379 } } . FILTER ( ?x < ?q ) }
outlaw Gordian knot fencer sovereign people home Welsh people tumulus peace auction family gaze clergy hermit pupil donor predation author fortune-teller athletics competitor slave craft conquistador matchmaker beggar Swiss people employee tree smuggler Newton's laws of motion student Radha mummy anchorite hunter liberty to walk philosopher rock music prayer eating sky touch human swimming being pattern guitarist sportsperson thief murderer job bibliophile lovers' embrace drinking swimmer prisoner of war justice gift prisoner court poverty rebel rower postal worker
philosopher murderer fortune-teller
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action count
action filter_multi_types
action find_reverse
entity walking
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?l WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:genre_of_sculpture ) } } . ?j property:depicts resource:walking } } . FILTER ( ?x < ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q327055
P180
Q151885 Q18783400 Q2342494
USER
And how about worker?
(c(Q18783400)|c(Q2342494),P180,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q327055
relation P180
type Q18783400
type Q2342494
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?y ) WHERE { { ?g property:P180 ?z . ?z rdf:type ontology:Q151885 . ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q18783400 . ?z rdf:type ontology:Q151885 . ?g property:P180 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q2342494 ) } } . ?c property:P180 resource:Q327055 } } . FILTER ( ?y < ?t ) }
worker
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action count
action filter_multi_types
action find_reverse
entity worker
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?y ) WHERE { { ?g property:depicts ?z . ?z rdf:type ontology:concept . ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:genre_of_sculpture . ?z rdf:type ontology:concept . ?g property:depicts ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:collectable ) } } . ?c property:depicts resource:worker } } . FILTER ( ?y < ?t ) }
[]
concept genre of sculpture collectable
Q4964182 Q931260 Q12004621
SYSTEM
philosopher, murderer, fortune-teller
Q254508 Q193373 Q13381863 Q2304859 Q2472587 Q7743 Q188353 Q34023 Q454 Q177923 Q8436 Q14467155 Q177826 Q189829 Q48942 Q1968442 Q170430 Q482980 Q12004621 Q11513337 Q12773225 Q2207288 Q126236 Q15980704 Q273283 Q124216 Q703534 Q272735 Q17176618 Q38433 Q48282 Q113904 Q43616 Q1146843 Q1714828 Q2979 Q25443024 Q4964182 Q11399 Q40953 Q213449 Q527 Q877674 Q6388 Q203872 Q2083958 Q855091 Q2066131 Q3562775 Q931260 Q192581 Q18120029 Q18121798 Q876776 Q10843402 Q179637 Q5167661 Q3035707 Q1862087 Q1134237 Q10294 Q1125062 Q13382576 Q7234072
(c(Q18783400)|c(Q2342494),P180,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q327055
relation P180
type Q18783400
type Q2342494
[ANSWERS]
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?y ) WHERE { { ?g property:P180 ?z . ?z rdf:type ontology:Q151885 . ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q18783400 . ?z rdf:type ontology:Q151885 . ?g property:P180 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q2342494 ) } } . ?c property:P180 resource:Q327055 } } . FILTER ( ?y < ?t ) }
outlaw Gordian knot fencer sovereign people home Welsh people tumulus peace auction family gaze clergy hermit pupil donor predation author fortune-teller athletics competitor slave craft conquistador matchmaker beggar Swiss people employee tree smuggler Newton's laws of motion student Radha mummy anchorite hunter liberty to walk philosopher rock music prayer eating sky touch human swimming being pattern guitarist sportsperson thief murderer job bibliophile lovers' embrace drinking swimmer prisoner of war justice gift prisoner court poverty rebel rower postal worker
philosopher murderer fortune-teller
action less
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action count
action filter_multi_types
action find_reverse
entity worker
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?y ) WHERE { { ?g property:depicts ?z . ?z rdf:type ontology:concept . ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:genre_of_sculpture . ?z rdf:type ontology:concept . ?g property:depicts ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:collectable ) } } . ?c property:depicts resource:worker } } . FILTER ( ?y < ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142549 Q794586
P361
Q1875621
USER
How many aircraft classes are Il-76 or SA 330 Puma a component of ?
(Q142549,P361,c(Q1875621)) (Q794586,P361,c(Q1875621))
action count
action union
action filter_type
action find
entity Q142549
relation P361
type Q1875621
action filter_type
action find
entity Q794586
relation P361
type Q1875621
['Q142549', 'P361', {'concept': 'Q1875621'}] ['Q794586', 'P361', {'concept': 'Q1875621'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Q794586 property:P361 ?j . ?j rdf:type ontology:Q1875621 } UNION { resource:Q142549 property:P361 ?j . ?j rdf:type ontology:Q1875621 } }
Il-76 SA 330 Puma
action count
action union
action filter_type
action find
entity Il-76
relation part of
type aircraft class
action filter_type
action find
entity SA 330 Puma
relation part of
type aircraft class
['Il-76', 'part of', {'concept': 'aircraft class'}] ['SA 330 Puma', 'part of', {'concept': 'aircraft class'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:SA_330_Puma property:part_of ?j . ?j rdf:type ontology:aircraft_class } UNION { resource:Il-76 property:part_of ?j . ?j rdf:type ontology:aircraft_class } }
[]
aircraft class
SYSTEM
2
Q24249663 Q17489833
(Q142549,P361,c(Q1875621)) (Q794586,P361,c(Q1875621))
action count
action union
action filter_type
action find
entity Q142549
relation P361
type Q1875621
action filter_type
action find
entity Q794586
relation P361
type Q1875621
[ANSWER]
['Q142549', 'P361', {'concept': 'Q1875621'}] ['Q794586', 'P361', {'concept': 'Q1875621'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:Q794586 property:P361 ?j . ?j rdf:type ontology:Q1875621 } UNION { resource:Q142549 property:P361 ?j . ?j rdf:type ontology:Q1875621 } }
Il-76 fleet Algerian SA 330 in service
2
action count
action union
action filter_type
action find
entity Il-76
relation part of
type aircraft class
action filter_type
action find
entity SA 330 Puma
relation part of
type aircraft class
['Il-76', 'part of', {'concept': 'aircraft class'}] ['SA 330 Puma', 'part of', {'concept': 'aircraft class'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { resource:SA_330_Puma property:part_of ?j . ?j rdf:type ontology:aircraft_class } UNION { resource:Il-76 property:part_of ?j . ?j rdf:type ontology:aircraft_class } }
[]