Simple Question (Direct)
Simple Question
Q4760106
P21
Q290
USER
Which sex does André dos Santos Oliveira have ?
(Q4760106,P21,c(Q290))
action filter_type
action find
entity Q4760106
relation P21
type Q290
['Q4760106', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4760106 property:P21 ?a . ?a rdf:type ontology:Q290 }
André dos Santos Oliveira
action filter_type
action find
entity André dos Santos Oliveira
relation gender
type sex
['André dos Santos Oliveira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:André_dos_Santos_Oliveira property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4760106,P21,c(Q290))
action filter_type
action find
entity Q4760106
relation P21
type Q290
André dos Santos Oliveira has a [ANSWER]
['Q4760106', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4760106 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
André dos Santos Oliveira has a male
male
action filter_type
action find
entity André dos Santos Oliveira
relation gender
type sex
['André dos Santos Oliveira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:André_dos_Santos_Oliveira property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P106
Q502895
USER
Who has a job as that sex ?
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P106 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:occupation resource:male }
[]
common name
Q24877298
SYSTEM
Antonín Straka
Q24877298
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[ANSWER] has a job as that sex
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P106 resource:Q6581097 }
Antonín Straka
Antonín Straka has a job as that sex
Antonín Straka
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:occupation resource:male }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4760106
P19
Q56061
USER
Which administrative territory was André dos Santos Oliveira born at ?
(Q4760106,P19,c(Q56061))
action filter_type
action find
entity Q4760106
relation P19
type Q56061
['Q4760106', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4760106 property:P19 ?d }
André dos Santos Oliveira
action filter_type
action find
entity André dos Santos Oliveira
relation place of birth
type administrative territorial entity
['André dos Santos Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:André_dos_Santos_Oliveira property:place_of_birth ?d }
[]
administrative territorial entity
Q1760603
SYSTEM
Rancharia
Q1760603
(Q4760106,P19,c(Q56061))
action filter_type
action find
entity Q4760106
relation P19
type Q56061
André dos Santos Oliveira was born in [ANSWER]
['Q4760106', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q4760106 property:P19 ?d }
Rancharia
André dos Santos Oliveira was born in Rancharia
Rancharia
action filter_type
action find
entity André dos Santos Oliveira
relation place of birth
type administrative territorial entity
['André dos Santos Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:André_dos_Santos_Oliveira property:place_of_birth ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3749632
Q56061
USER
And how about Francesco Biava?
(Q3749632,P19,c(Q56061))
action filter_type
action find
entity Q3749632
relation P19
type Q56061
['Q3749632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q3749632 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Francesco Biava
action filter_type
action find
entity Francesco Biava
relation place of birth
type administrative territorial entity
['Francesco Biava', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Francesco_Biava property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3749632,P19,c(Q56061))
action filter_type
action find
entity Q3749632
relation P19
type Q56061
[ANSWER]
['Q3749632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q3749632 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Rome
Rome
action filter_type
action find
entity Francesco Biava
relation place of birth
type administrative territorial entity
['Francesco Biava', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Francesco_Biava property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q868742 Q4760106
P27
Q15617994
USER
Which administrative territories do André dos Santos Oliveira or Kirill Premudrov belong to ?
OR((Q4760106,P27,c(Q15617994)), (Q868742,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4760106
relation P27
action find
entity Q868742
relation P27
type Q15617994
{'OR': [['Q4760106', 'P27', {'concept': 'Q15617994'}], ['Q868742', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q868742 property:P27 ?l } UNION { resource:Q4760106 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Kirill Premudrov André dos Santos Oliveira
action filter_type
action union
action find
entity André dos Santos Oliveira
relation country of citizenship
action find
entity Kirill Premudrov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['André dos Santos Oliveira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kirill Premudrov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Kirill_Premudrov property:country_of_citizenship ?l } UNION { resource:André_dos_Santos_Oliveira property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q184
SYSTEM
Brazil, Belarus
Q155 Q184
OR((Q4760106,P27,c(Q15617994)), (Q868742,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4760106
relation P27
action find
entity Q868742
relation P27
type Q15617994
[ANSWERS] André s Santos Oliveira or Kirill Premudrov belong to
{'OR': [['Q4760106', 'P27', {'concept': 'Q15617994'}], ['Q868742', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q868742 property:P27 ?l } UNION { resource:Q4760106 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Brazil Belarus
Brazil and Belarus André s Santos Oliveira or Kirill Premudrov belong to
Brazil Belarus
action filter_type
action union
action find
entity André dos Santos Oliveira
relation country of citizenship
action find
entity Kirill Premudrov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['André dos Santos Oliveira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kirill Premudrov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Kirill_Premudrov property:country_of_citizenship ?l } UNION { resource:André_dos_Santos_Oliveira property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with exactly 4 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?y ) WHERE { ?e rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?e property:P530 ?d } GROUP BY ?e } . FILTER ( ?y = 4 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?y ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?d } GROUP BY ?e } . FILTER ( ?y = 4 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
9
Q889 Q884 Q881 Q32 Q34 Q423 Q843 Q227 Q1033
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?y ) WHERE { ?e rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?e property:P530 ?d } GROUP BY ?e } . FILTER ( ?y = 4 ) }
Afghanistan South Korea Vietnam Luxembourg Sweden North Korea Pakistan Azerbaijan Nigeria
9
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?y ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?d } GROUP BY ?e } . FILTER ( ?y = 4 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with around the same number of administrative territories as Antigua and Barbuda ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?q ) WHERE { ?x property:P530 ?f . ?x rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { resource:Q781 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } }
Antigua and Barbuda
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?q ) WHERE { ?x property:diplomatic_relation ?f . ?x rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?q ) WHERE { ?x property:P530 ?f . ?x rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { resource:Q781 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?q ) WHERE { ?x property:diplomatic_relation ?f . ?x rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?q = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And what about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?a ) WHERE { ?w property:P530 ?p . ?w rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?y } } . FILTER ( ?a = ?i ) }
Jamaica
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?a ) WHERE { ?w property:diplomatic_relation ?p . ?w rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?y } } . FILTER ( ?a = ?i ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?a ) WHERE { ?w property:P530 ?p . ?w rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?y } } . FILTER ( ?a = ?i ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?a ) WHERE { ?w property:diplomatic_relation ?p . ?w rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?y } } . FILTER ( ?a = ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P47
Q20667921 Q56061
USER
How many french administrative divisions or administrative territories share the border with Brazil ?
(Q155,P47,c(Q20667921)) (Q155,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q20667921
action filter_type
action find
entity Q155
relation P47
type Q56061
['Q155', 'P47', {'concept': 'Q20667921'}] ['Q155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { resource:Q155 property:P47 ?q . ?q rdf:type ontology:Q20667921 } UNION { resource:Q155 property:P47 ?q . ?q rdf:type ontology:Q56061 } }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
['Brazil', 'shares border with', {'concept': 'type of french administrative division'}] ['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { resource:Brazil property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brazil property:shares_border_with ?q . ?q rdf:type ontology:administrative_territorial_entity } }
[]
type of french administrative division administrative territorial entity
SYSTEM
2
Q458 Q3769
(Q155,P47,c(Q20667921)) (Q155,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q20667921
action filter_type
action find
entity Q155
relation P47
type Q56061
[ANSWER]
['Q155', 'P47', {'concept': 'Q20667921'}] ['Q155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { resource:Q155 property:P47 ?q . ?q rdf:type ontology:Q20667921 } UNION { resource:Q155 property:P47 ?q . ?q rdf:type ontology:Q56061 } }
European Union French Guiana
2
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
['Brazil', 'shares border with', {'concept': 'type of french administrative division'}] ['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { resource:Brazil property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brazil property:shares_border_with ?q . ?q rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q15324 Q2221906 Q15617994
USER
Which administrative territories have their location as min number of bodies of water and geographic locations ?
(c(Q15617994),P706,c(Q15324)|c(Q2221906))
action argmin
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } . ?p rdf:type ?u } GROUP BY ?k } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?q WHERE { { ?q property:P706 ?n . ?n rdf:type ontology:Q15324 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P706 ?n . ?n rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?k WHERE { VALUES ( ?u ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } . ?p rdf:type ?u } GROUP BY ?k } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?q WHERE { { ?q property:located_on_terrain_feature ?n . ?n rdf:type ontology:body_of_water . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:located_on_terrain_feature ?n . ?n rdf:type ontology:geographic_location . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } }
[]
body of water geographic location designation for an administrative territorial entity
Q148 Q145 Q805
SYSTEM
People's Republic of China, United Kingdom, Yemen
Q805 Q1070686 Q695445 Q2712111 Q489215 Q5101419 Q682072 Q6685870 Q4692591 Q525879 Q267993 Q922342 Q637400 Q21042 Q632868 Q148 Q21049 Q7042 Q312335 Q21160 Q525945 Q5382040 Q252320 Q3003231 Q505665 Q1462 Q15744129 Q4692611 Q521132 Q508054 Q1721440 Q5517964 Q555609 Q267005 Q27332 Q1619957 Q1093572 Q6350324 Q4789577 Q501683 Q582690 Q216422 Q5000224 Q20789 Q16642582 Q921 Q633162 Q520347 Q851 Q845396 Q15213143 Q598754 Q252772 Q21074475 Q104192 Q81306 Q771971 Q1778088 Q3942 Q145 Q333149 Q27 Q494305 Q565749 Q5420482 Q19906291 Q502662 Q47821 Q20019215 Q503693 Q4692647 Q3068 Q331886 Q15244035 Q6472577 Q588957 Q229 Q4769813 Q112019 Q704288 Q21008 Q7916724 Q660806 Q28091 Q507258 Q5275507 Q28013 Q558787 Q14892 Q180271 Q6353095 Q628095 Q3923 Q27649869 Q5283827 Q522992 Q15744111 Q6835962 Q518171 Q2119591 Q46870 Q7561974 Q504134 Q625747 Q2585085 Q8147649 Q481758 Q8043694 Q31640 Q3559483 Q376823 Q3559279 Q3559271
(c(Q15617994),P706,c(Q15324)|c(Q2221906))
action argmin
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q2221906
[ANSWERS] have their location as min number of bodies of water and geographic locations
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } . ?p rdf:type ?u } GROUP BY ?k } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?q WHERE { { ?q property:P706 ?n . ?n rdf:type ontology:Q15324 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P706 ?n . ?n rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } }
Yemen Leivathos Langen Zagori Oberhof Chionata Rankwitz Loucha Agioi Pantes Haundorf Muhr am See Sithonia Hohenwarte Nebel Sasbach People's Republic of China Norddorf auf Amrum Amberg Spalt List auf Sylt Pfofeld Epanochori, Cephalonia Pleinfeld Croisset Bergen Sardinia Oberscheuren Agios Dimitrios, Cephalonia Hilpoltstein Neu Wulmstorf Kaimig Galaro Magdala Moneglia Kampen Hippelsbach Trøllanes Kalamaki, Zakynthos Arginia Rosengarten Neuenhagen bei Berlin Samsø Burnt River, Ontario Wenningstedt-Braderup Hydra Brunei Drestedt Röttenbach, Roth Saudi Arabia Pyramiden Davgata Undeloh Eichstätt Nenndorf Kleinmachnow Forbach Avlida Kochenbach Aschaffenburg United Kingdom Abstatt Ireland Kelheim Erden Exo Chora Western New Guinea Bad Salzungen Malcesine Natal Riedenburg Agios Nikolaos, Cephalonia Loire-Atlantique Absberg Makryotika Lagopodo Allersberg Cyprus Ano Gerakari Sirmione Duchy of Holstein Sylt Vasilikades Karlshagen Wittdün auf Amrum Kipfenberg Digaleto Hörnum Südeichsfeld Buchholz in der Nordheide Vetralla Kalipado Nürburg Bayreuth Teglkås Divarata Braunlage Niederscheuren Michata Ellhofen Pylaros Bardolino Sonning Eye Kirchlinteln Rangsdorf Wintersberg Ba District Pantelleria Xenopoulo Unterschwaningen Elatia Wenzendorf Artemisia Arkadioi
People's Republic of China, United Kingdom and Yemen have their location as min number of bodies of water and geographic locations
People's Republic of China United Kingdom Yemen
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic location
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?k WHERE { VALUES ( ?u ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } . ?p rdf:type ?u } GROUP BY ?k } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) ?q WHERE { { ?q property:located_on_terrain_feature ?n . ?n rdf:type ontology:body_of_water . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:located_on_terrain_feature ?n . ?n rdf:type ontology:geographic_location . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16 Q155
P27
Q502895
USER
Which people are a native of Brazil and Canada ?
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?y WHERE { ?y property:P27 resource:Q155 . ?y property:P27 resource:Q16 . ?y rdf:type ontology:Q502895 }
Canada Brazil
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?y WHERE { ?y property:country_of_citizenship resource:Brazil . ?y property:country_of_citizenship resource:Canada . ?y rdf:type ontology:common_name }
[]
common name
Q1395276 Q6379804 Q10346259 Q6125891 Q19938318
SYSTEM
Robyn Regehr, Mike Greenlay, Paul-Eugène Charbonneau, Jalal Merhi, Ana Lucia Araujo
Q1395276 Q6379804 Q10346259 Q6125891 Q19938318
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
[ANSWERS] are a native of Brazil and Canada
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?y WHERE { ?y property:P27 resource:Q155 . ?y property:P27 resource:Q16 . ?y rdf:type ontology:Q502895 }
Robyn Regehr Mike Greenlay Paul-Eugène Charbonneau Jalal Merhi Ana Lucia Araujo
Robyn Regehr, Mike Greenlay, Paul-Eugène Charbonneau, Jalal Merhi and Ana Lucia Araujo are a native of Brazil and Canada
Robyn Regehr Mike Greenlay Paul-Eugène Charbonneau Jalal Merhi Ana Lucia Araujo
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?y WHERE { ?y property:country_of_citizenship resource:Brazil . ?y property:country_of_citizenship resource:Canada . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 365 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 365
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?q = 365 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 365
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?q = 365 ) }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 365
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?q = 365 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 365
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?q = 365 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4877293 Q1760603
P17
Q15617994
USER
Which administrative territories are Rancharia or Beatservice Records located in ?
OR((Q1760603,P17,c(Q15617994)), (Q4877293,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1760603
relation P17
action find
entity Q4877293
relation P17
type Q15617994
{'OR': [['Q1760603', 'P17', {'concept': 'Q15617994'}], ['Q4877293', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { VALUES ( ?f ) { ( resource:Q1760603 ) ( resource:Q4877293 ) } . ?f property:P17 ?w } }
Beatservice Records Rancharia
action filter_type
action union
action find
entity Rancharia
relation country
action find
entity Beatservice Records
relation country
type designation for an administrative territorial entity
{'OR': [['Rancharia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Beatservice Records', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?f ) { ( resource:Rancharia ) ( resource:Beatservice_Records ) } . ?f property:country ?w } }
[]
designation for an administrative territorial entity
Q155 Q20
SYSTEM
Brazil, Norway
Q155 Q20
OR((Q1760603,P17,c(Q15617994)), (Q4877293,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1760603
relation P17
action find
entity Q4877293
relation P17
type Q15617994
Rancharia or Beatservice Records are located in [ANSWERS]
{'OR': [['Q1760603', 'P17', {'concept': 'Q15617994'}], ['Q4877293', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { VALUES ( ?f ) { ( resource:Q1760603 ) ( resource:Q4877293 ) } . ?f property:P17 ?w } }
Brazil Norway
Rancharia or Beatservice Records are located in Brazil and Norway
Brazil Norway
action filter_type
action union
action find
entity Rancharia
relation country
action find
entity Beatservice Records
relation country
type designation for an administrative territorial entity
{'OR': [['Rancharia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Beatservice Records', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?f ) { ( resource:Rancharia ) ( resource:Beatservice_Records ) } . ?f property:country ?w } }
[]