Simple Question (Direct)
Simple Question
Q1563077
P21
Q290
USER
What is the sex of Siegfried Weyr ?
(Q1563077,P21,c(Q290))
action filter_type
action find
entity Q1563077
relation P21
type Q290
['Q1563077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1563077 property:P21 ?f . ?f rdf:type ontology:Q290 }
Siegfried Weyr
action filter_type
action find
entity Siegfried Weyr
relation gender
type sex
['Siegfried Weyr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Siegfried_Weyr property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1563077,P21,c(Q290))
action filter_type
action find
entity Q1563077
relation P21
type Q290
The sex of Siegfried Weyr is the [ANSWER]
['Q1563077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1563077 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of Siegfried Weyr is the male
male
action filter_type
action find
entity Siegfried Weyr
relation gender
type sex
['Siegfried Weyr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Siegfried_Weyr property:gender ?f . ?f rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5713033 Q1563077
P27
Q1048835
USER
Which political territories are Siegfried Weyr or Henare Potae a civilian of ?
OR((Q1563077,P27,c(Q1048835)), (Q5713033,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1563077
relation P27
action find
entity Q5713033
relation P27
type Q1048835
{'OR': [['Q1563077', 'P27', {'concept': 'Q1048835'}], ['Q5713033', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { ?p property:P27 ?y . VALUES ( ?p ) { ( resource:Q1563077 ) ( resource:Q5713033 ) } } . ?y rdf:type ontology:Q1048835 }
Henare Potae Siegfried Weyr
action filter_type
action union
action find
entity Siegfried Weyr
relation country of citizenship
action find
entity Henare Potae
relation country of citizenship
type political territorial entity
{'OR': [['Siegfried Weyr', 'country of citizenship', {'concept': 'political territorial entity'}], ['Henare Potae', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { ?p property:country_of_citizenship ?y . VALUES ( ?p ) { ( resource:Siegfried_Weyr ) ( resource:Henare_Potae ) } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q40
SYSTEM
New Zealand, Austria
Q664 Q40
OR((Q1563077,P27,c(Q1048835)), (Q5713033,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1563077
relation P27
action find
entity Q5713033
relation P27
type Q1048835
[ANSWERS] are Siegfried Weyr or Henare Potae a civilian of
{'OR': [['Q1563077', 'P27', {'concept': 'Q1048835'}], ['Q5713033', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { ?p property:P27 ?y . VALUES ( ?p ) { ( resource:Q1563077 ) ( resource:Q5713033 ) } } . ?y rdf:type ontology:Q1048835 }
New Zealand Austria
New Zealand and Austria are Siegfried Weyr or Henare Potae a civilian of
New Zealand Austria
action filter_type
action union
action find
entity Siegfried Weyr
relation country of citizenship
action find
entity Henare Potae
relation country of citizenship
type political territorial entity
{'OR': [['Siegfried Weyr', 'country of citizenship', {'concept': 'political territorial entity'}], ['Henare Potae', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { ?p property:country_of_citizenship ?y . VALUES ( ?p ) { ( resource:Siegfried_Weyr ) ( resource:Henare_Potae ) } } . ?y rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5121021
P530
Q15617994
USER
Do Cinnaminson Township Public Schools have ambassadorial relations with those political territories ?
(Q5121021,P530,Q664) (Q5121021,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5121021
relation P530
['Q5121021', 'P530', 'Q664'] ['Q5121021', 'P530', 'Q40']
ASK WHERE { VALUES ( ?n ) { ( resource:Q664 ) ( resource:Q40 ) } . resource:Q5121021 property:P530 ?n }
Cinnaminson Township Public Schools
action is_in
entity prev_answer
action find
entity Cinnaminson Township Public Schools
relation diplomatic relation
['Cinnaminson Township Public Schools', 'diplomatic relation', 'New Zealand'] ['Cinnaminson Township Public Schools', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?n ) { ( resource:New_Zealand ) ( resource:Austria ) } . resource:Cinnaminson_Township_Public_Schools property:diplomatic_relation ?n }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5121021,P530,Q664) (Q5121021,P530,Q40)
action is_in
entity prev_answer
action find
entity Q5121021
relation P530
[ANSWER]
['Q5121021', 'P530', 'Q664'] ['Q5121021', 'P530', 'Q40']
ASK WHERE { VALUES ( ?n ) { ( resource:Q664 ) ( resource:Q40 ) } . resource:Q5121021 property:P530 ?n }
No
action is_in
entity prev_answer
action find
entity Cinnaminson Township Public Schools
relation diplomatic relation
['Cinnaminson Township Public Schools', 'diplomatic relation', 'New Zealand'] ['Cinnaminson Township Public Schools', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?n ) { ( resource:New_Zealand ) ( resource:Austria ) } . resource:Cinnaminson_Township_Public_Schools property:diplomatic_relation ?n }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q232
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with lesser number of political territories than Kazakhstan ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q232
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?n ) WHERE { ?j property:P530 ?u . ?j rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q232 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?g ) }
Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Kazakhstan
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?n ) WHERE { ?j property:diplomatic_relation ?u . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Kazakhstan property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?g ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q232
relation P530
type Q1048835
[ANSWERS] have diplomatic associations with lesser number of political territories than Kazakhstan
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?n ) WHERE { ?j property:P530 ?u . ?j rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q232 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?g ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen, Syria and Oman have diplomatic associations with lesser number of political territories than Kazakhstan
Yemen Syria Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Kazakhstan
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?n ) WHERE { ?j property:diplomatic_relation ?u . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Kazakhstan property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q695
P530
Q1048835 Q15617994
USER
And what about Palau?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?d ) WHERE { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?a property:P530 ?w } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q695 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?k ) }
Palau
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?d ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?w } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Palau property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?k ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?d ) WHERE { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?a property:P530 ?w } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q695 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?k ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen Syria Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?d ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?w } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Palau property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?k ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q183366
USER
How many administrative territories and territories have diplomatic relations with that administrative territory ?
(c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q858) (c(Q183366),P530,Q858) (c(Q15617994),P530,Q842) (c(Q183366),P530,Q842)
[{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q858'] [{'concept': 'Q183366'}, 'P530', 'Q858'] [{'concept': 'Q15617994'}, 'P530', 'Q842'] [{'concept': 'Q183366'}, 'P530', 'Q842']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q858 } UNION { ?y property:P530 resource:Q858 } UNION { ?z property:P530 resource:Q842 } UNION { ?y property:P530 resource:Q842 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q14916058 }
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Syria'] [{'concept': 'territory'}, 'diplomatic relation', 'Syria'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Oman'] [{'concept': 'territory'}, 'diplomatic relation', 'Oman']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Syria } UNION { ?y property:diplomatic_relation resource:Syria } UNION { ?z property:diplomatic_relation resource:Oman } UNION { ?y property:diplomatic_relation resource:Oman } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:territory }
[]
designation for an administrative territorial entity territory
Quantitative|Count|Mult. entity type|Clarification
Q805
SYSTEM
Did you mean Yemen ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q858 } UNION { ?y property:P530 resource:Q858 } UNION { ?z property:P530 resource:Q842 } UNION { ?y property:P530 resource:Q842 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q14916058 }
Did you mean Yemen ?
Yemen
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Syria } UNION { ?y property:diplomatic_relation resource:Syria } UNION { ?z property:diplomatic_relation resource:Oman } UNION { ?y property:diplomatic_relation resource:Oman } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:territory }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q858) (c(Q183366),P530,Q858) (c(Q15617994),P530,Q842) (c(Q183366),P530,Q842)
[{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q858'] [{'concept': 'Q183366'}, 'P530', 'Q858'] [{'concept': 'Q15617994'}, 'P530', 'Q842'] [{'concept': 'Q183366'}, 'P530', 'Q842']
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Syria'] [{'concept': 'territory'}, 'diplomatic relation', 'Syria'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Oman'] [{'concept': 'territory'}, 'diplomatic relation', 'Oman']
[]
SYSTEM
17 administrative territories and 1 territories
Q858 Q801 Q843 Q851 Q1016 Q846 Q398 Q159 Q230 Q43 Q145 Q148 Q796 Q794 Q30 Q842 Q38 Q878
(c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q805) (c(Q183366),P530,Q805) (c(Q15617994),P530,Q858) (c(Q183366),P530,Q858) (c(Q15617994),P530,Q842) (c(Q183366),P530,Q842)
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q805'] [{'concept': 'Q183366'}, 'P530', 'Q805'] [{'concept': 'Q15617994'}, 'P530', 'Q858'] [{'concept': 'Q183366'}, 'P530', 'Q858'] [{'concept': 'Q15617994'}, 'P530', 'Q842'] [{'concept': 'Q183366'}, 'P530', 'Q842']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q805 } UNION { ?y property:P530 resource:Q805 } UNION { ?z property:P530 resource:Q858 } UNION { ?y property:P530 resource:Q858 } UNION { ?z property:P530 resource:Q842 } UNION { ?y property:P530 resource:Q842 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q14916058 }
Syria Israel Pakistan Saudi Arabia Libya Qatar Bahrain Russia Georgia Turkey United Kingdom People's Republic of China Iraq Iran United States of America Oman Italy United Arab Emirates
17 administrative territories and 1 territories
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Yemen'] [{'concept': 'territory'}, 'diplomatic relation', 'Yemen'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Syria'] [{'concept': 'territory'}, 'diplomatic relation', 'Syria'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Oman'] [{'concept': 'territory'}, 'diplomatic relation', 'Oman']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Yemen } UNION { ?y property:diplomatic_relation resource:Yemen } UNION { ?z property:diplomatic_relation resource:Syria } UNION { ?y property:diplomatic_relation resource:Syria } UNION { ?z property:diplomatic_relation resource:Oman } UNION { ?y property:diplomatic_relation resource:Oman } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:territory }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q2088357 Q2342494
USER
How many political territories are the countries of origin of atleast 519 musical ensembles or collectables ?
(c(Q2088357)|c(Q2342494),P495,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
value 519
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } } GROUP BY ?b } . FILTER ( ?v >= 519 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
value 519
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } } GROUP BY ?b } . FILTER ( ?v >= 519 ) }
[]
political territorial entity musical ensemble collectable
SYSTEM
2
Q16 Q408
(c(Q2088357)|c(Q2342494),P495,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
value 519
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } } GROUP BY ?b } . FILTER ( ?v >= 519 ) }
Canada Australia
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
value 519
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } } GROUP BY ?b } . FILTER ( ?v >= 519 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q805
P610
Q14524493
USER
Which terrain is the highest point of Yemen ?
(Q805,P610,c(Q14524493))
action filter_type
action find
entity Q805
relation P610
type Q14524493
['Q805', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q14524493 . resource:Q805 property:P610 ?c }
Yemen
action filter_type
action find
entity Yemen
relation highest point
type terrain
['Yemen', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:terrain . resource:Yemen property:highest_point ?c }
[]
terrain
Q1261935
SYSTEM
Jabal an Nabi Shu'ayb
Q1261935
(Q805,P610,c(Q14524493))
action filter_type
action find
entity Q805
relation P610
type Q14524493
[ANSWER] is the highest point of Yemen
['Q805', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q14524493 . resource:Q805 property:P610 ?c }
Jabal an Nabi Shu'ayb
Jabal an Nabi Shu'ayb is the highest point of Yemen
Jabal an Nabi Shu'ayb
action filter_type
action find
entity Yemen
relation highest point
type terrain
['Yemen', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:terrain . resource:Yemen property:highest_point ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q871793
Q14524493
USER
And what about Kalkkögel?
(Q871793,P610,c(Q14524493))
action filter_type
action find
entity Q871793
relation P610
type Q14524493
['Q871793', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?d WHERE { resource:Q871793 property:P610 ?d . ?d rdf:type ontology:Q14524493 }
Kalkkögel
action filter_type
action find
entity Kalkkögel
relation highest point
type terrain
['Kalkkögel', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?d WHERE { resource:Kalkkögel property:highest_point ?d . ?d rdf:type ontology:terrain }
[]
terrain
Q2239643
SYSTEM
Schlicker Seespitze
Q2239643
(Q871793,P610,c(Q14524493))
action filter_type
action find
entity Q871793
relation P610
type Q14524493
[ANSWER]
['Q871793', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?d WHERE { resource:Q871793 property:P610 ?d . ?d rdf:type ontology:Q14524493 }
Schlicker Seespitze
Schlicker Seespitze
action filter_type
action find
entity Kalkkögel
relation highest point
type terrain
['Kalkkögel', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?d WHERE { resource:Kalkkögel property:highest_point ?d . ?d rdf:type ontology:terrain }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q26196531
P3173
Q14524493 Q811979
USER
How many architectural structures contain views of more number of terrains than Washburn Point ?
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q26196531
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?y ) WHERE { ?i property:P3173 ?x . ?i rdf:type ontology:Q811979 . ?x rdf:type ontology:Q14524493 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q26196531 property:P3173 ?l . ?l rdf:type ontology:Q811979 } } . FILTER ( ?y > ?c ) }
Washburn Point
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Washburn Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?y ) WHERE { ?i property:offers_view_on ?x . ?i rdf:type ontology:architectural_structure . ?x rdf:type ontology:terrain } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Washburn_Point property:offers_view_on ?l . ?l rdf:type ontology:architectural_structure } } . FILTER ( ?y > ?c ) }
[]
terrain architectural structure
SYSTEM
3
Q3108318 Q7088437 Q2433474
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q26196531
relation P3173
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?y ) WHERE { ?i property:P3173 ?x . ?i rdf:type ontology:Q811979 . ?x rdf:type ontology:Q14524493 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q26196531 property:P3173 ?l . ?l rdf:type ontology:Q811979 } } . FILTER ( ?y > ?c ) }
Glacier Point Olmsted Point Tunnel View
3
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Washburn Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?y ) WHERE { ?i property:offers_view_on ?x . ?i rdf:type ontology:architectural_structure . ?x rdf:type ontology:terrain } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Washburn_Point property:offers_view_on ?l . ?l rdf:type ontology:architectural_structure } } . FILTER ( ?y > ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q858
P137
Q2424752
USER
Which products are the administrator of Syria ?
(c(Q2424752),P137,Q858)
action filter_type
action find_reverse
entity Q858
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q858']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2424752 . ?h property:P137 resource:Q858 }
Syria
action filter_type
action find_reverse
entity Syria
relation operator
type product
[{'concept': 'product'}, 'operator', 'Syria']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:product . ?h property:operator resource:Syria }
[]
product
Q18015706 Q18015692
SYSTEM
Meteor NF13, Meteor FR9
Q18015706 Q18015692
(c(Q2424752),P137,Q858)
action filter_type
action find_reverse
entity Q858
relation P137
type Q2424752
[ANSWERS] are the administrator of Syria
[{'concept': 'Q2424752'}, 'P137', 'Q858']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2424752 . ?h property:P137 resource:Q858 }
Meteor NF13 Meteor FR9
Meteor NF13 and Meteor FR9 are the administrator of Syria
Meteor NF13 Meteor FR9
action filter_type
action find_reverse
entity Syria
relation operator
type product
[{'concept': 'product'}, 'operator', 'Syria']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:product . ?h property:operator resource:Syria }
[]