Simple Question (Direct)
Simple Question
Q6969231
P27
Q15617994
USER
Which administrative territory does Nathan Matthews, Jr. belong to ?
(Q6969231,P27,c(Q15617994))
action filter_type
action find
entity Q6969231
relation P27
type Q15617994
['Q6969231', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q6969231 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation country of citizenship
type designation for an administrative territorial entity
['Nathan Matthews, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Nathan_Matthews,_Jr. property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6969231,P27,c(Q15617994))
action filter_type
action find
entity Q6969231
relation P27
type Q15617994
Nathan Matthews , Jr. belongs to the [ANSWER]
['Q6969231', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q6969231 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
Nathan Matthews , Jr. belongs to the United States of America
United States of America
action filter_type
action find
entity Nathan Matthews, Jr.
relation country of citizenship
type designation for an administrative territorial entity
['Nathan Matthews, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Nathan_Matthews,_Jr. property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6969231
P106
Q12737077
USER
What does that person do for a living ?
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q6969231
relation P106
type Q12737077
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q6969231 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Nathan_Matthews,_Jr. property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q6969231
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q6969231 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Nathan Matthews, Jr.
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Nathan_Matthews,_Jr. property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q3898226
P106
Q502895
USER
Does Paulo Fambri have the profession as that occupation ?
(Q3898226,P106,Q82955)
action is_in
entity Q82955
action find
entity Q3898226
relation P106
['Q3898226', 'P106', 'Q82955']
ASK WHERE { resource:Q3898226 property:P106 resource:Q82955 }
politician Paulo Fambri
action is_in
entity politician
action find
entity Paulo Fambri
relation occupation
['Paulo Fambri', 'occupation', 'politician']
ASK WHERE { resource:Paulo_Fambri property:occupation resource:politician }
[]
common name
SYSTEM
YES
(Q3898226,P106,Q82955)
action is_in
entity Q82955
action find
entity Q3898226
relation P106
[ANSWER]
['Q3898226', 'P106', 'Q82955']
ASK WHERE { resource:Q3898226 property:P106 resource:Q82955 }
Yes
action is_in
entity politician
action find
entity Paulo Fambri
relation occupation
['Paulo Fambri', 'occupation', 'politician']
ASK WHERE { resource:Paulo_Fambri property:occupation resource:politician }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6969231 Q6750476
P19
Q56061
USER
Is Manka, Lesotho the place of birth of Nathan Matthews, Jr. ?
(Q6969231,P19,Q6750476)
action is_in
entity Q6750476
action find
entity Q6969231
relation P19
['Q6969231', 'P19', 'Q6750476']
ASK WHERE { resource:Q6969231 property:P19 resource:Q6750476 }
Nathan Matthews, Jr. Manka, Lesotho
action is_in
entity Manka, Lesotho
action find
entity Nathan Matthews, Jr.
relation place of birth
['Nathan Matthews, Jr.', 'place of birth', 'Manka, Lesotho']
ASK WHERE { resource:Nathan_Matthews,_Jr. property:place_of_birth resource:Manka,_Lesotho }
[]
administrative territorial entity
SYSTEM
NO
(Q6969231,P19,Q6750476)
action is_in
entity Q6750476
action find
entity Q6969231
relation P19
[ANSWER]
['Q6969231', 'P19', 'Q6750476']
ASK WHERE { resource:Q6969231 property:P19 resource:Q6750476 }
No
action is_in
entity Manka, Lesotho
action find
entity Nathan Matthews, Jr.
relation place of birth
['Nathan Matthews, Jr.', 'place of birth', 'Manka, Lesotho']
ASK WHERE { resource:Nathan_Matthews,_Jr. property:place_of_birth resource:Manka,_Lesotho }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6969231
P102
Q7210356
USER
Which party does that person belong to ?
action filter_type
action find
entity Q6969231
relation P102
type Q7210356
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7210356 . resource:Q6969231 property:P102 ?p }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation member of political party
type political organization
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_organization . resource:Nathan_Matthews,_Jr. property:member_of_political_party ?p }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
action filter_type
action find
entity Q6969231
relation P102
type Q7210356
That person belongs to [ANSWER]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7210356 . resource:Q6969231 property:P102 ?p }
Democratic Party
That person belongs to Democratic Party
Democratic Party
action filter_type
action find
entity Nathan Matthews, Jr.
relation member of political party
type political organization
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_organization . resource:Nathan_Matthews,_Jr. property:member_of_political_party ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6969231
P21
Q290
USER
Which sex does that person have ?
(Q29552,P21,c(Q290))
action filter_type
action find
entity Q6969231
relation P21
type Q290
['Q29552', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q6969231 property:P21 ?z . ?z rdf:type ontology:Q290 }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation gender
type sex
['Democratic Party', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Nathan_Matthews,_Jr. property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q29552,P21,c(Q290))
action filter_type
action find
entity Q6969231
relation P21
type Q290
That person has a [ANSWER]
['Q29552', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q6969231 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Nathan Matthews, Jr.
relation gender
type sex
['Democratic Party', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Nathan_Matthews,_Jr. property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6969231
P69
Q3914
USER
Where was that person educated ?
(Q6581097,P69,c(Q3914))
action filter_type
action find
entity Q6969231
relation P69
type Q3914
['Q6581097', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3914 . resource:Q6969231 property:P69 ?e }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation educated at
type school
['male', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:school . resource:Nathan_Matthews,_Jr. property:educated_at ?e }
[]
school
Q49122
SYSTEM
Harvard Law School
Q49122
(Q6581097,P69,c(Q3914))
action filter_type
action find
entity Q6969231
relation P69
type Q3914
That person was educated at [ANSWER]
['Q6581097', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3914 . resource:Q6969231 property:P69 ?e }
Harvard Law School
That person was educated at Harvard Law School
Harvard Law School
action filter_type
action find
entity Nathan Matthews, Jr.
relation educated at
type school
['male', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:school . resource:Nathan_Matthews,_Jr. property:educated_at ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6969231
P20
Q56061
USER
Where did that person die ?
(Q49122,P20,c(Q56061))
action filter_type
action find
entity Q6969231
relation P20
type Q56061
['Q49122', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q6969231 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Nathan Matthews, Jr.
action filter_type
action find
entity Nathan Matthews, Jr.
relation place of death
type administrative territorial entity
['Harvard Law School', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nathan_Matthews,_Jr. property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q100
SYSTEM
Boston
Q100
(Q49122,P20,c(Q56061))
action filter_type
action find
entity Q6969231
relation P20
type Q56061
That person died in [ANSWER]
['Q49122', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q6969231 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Boston
That person died in Boston
Boston
action filter_type
action find
entity Nathan Matthews, Jr.
relation place of death
type administrative territorial entity
['Harvard Law School', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nathan_Matthews,_Jr. property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q15324 Q473972 Q15617994
USER
Which administrative territories are located in max number of bodies of water and protected areas ?
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?l property:P706 ?y . ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q473972 } UNION { ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15324 . ?l property:P706 ?y } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?c WHERE { { ?c property:P706 ?b . ?b rdf:type ontology:Q15324 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P706 ?b . ?c rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q473972 } } GROUP BY ?c } . FILTER ( ?k = ?w ) }
action argmax
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 protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?l property:located_on_terrain_feature ?y . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:protected_area } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:body_of_water . ?l property:located_on_terrain_feature ?y } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?c WHERE { { ?c property:located_on_terrain_feature ?b . ?b rdf:type ontology:body_of_water . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:located_on_terrain_feature ?b . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:protected_area } } GROUP BY ?c } . FILTER ( ?k = ?w ) }
[]
body of water protected area designation for an administrative territorial entity
Q3193 Q24846 Q20837
SYSTEM
Ostseebad Insel Poel, Juist, Fanø
Q24846 Q20837 Q25082 Q3193
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
The [ANSWERS] are located in max number of bodies of water and protected areas
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?l property:P706 ?y . ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q473972 } UNION { ?l rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15324 . ?l property:P706 ?y } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?c WHERE { { ?c property:P706 ?b . ?b rdf:type ontology:Q15324 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P706 ?b . ?c rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q473972 } } GROUP BY ?c } . FILTER ( ?k = ?w ) }
Juist Fanø Borkum Ostseebad Insel Poel
The Ostseebad Insel Poel, Juist and Fanø are located in max number of bodies of water and protected areas
Ostseebad Insel Poel Juist Fanø
action argmax
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 protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?l property:located_on_terrain_feature ?y . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:protected_area } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:body_of_water . ?l property:located_on_terrain_feature ?y } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?c WHERE { { ?c property:located_on_terrain_feature ?b . ?b rdf:type ontology:body_of_water . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:located_on_terrain_feature ?b . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:protected_area } } GROUP BY ?c } . FILTER ( ?k = ?w ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20837
P17
Q1048835
USER
Which political territory is that administrative territory present in ?
(Q20837,P17,c(Q1048835))
action filter_type
action find
entity Q20837
relation P17
type Q1048835
['Q20837', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q20837 property:P17 ?p . ?p rdf:type ontology:Q1048835 }
Fanø
action filter_type
action find
entity Fanø
relation country
type political territorial entity
['Fanø', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Fanø property:country ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q24846
SYSTEM
Did you mean Juist ?
Q3193 Q24846 Q20837
(Q3193,P17,c(Q1048835)) (Q24846,P17,c(Q1048835)) (Q20837,P17,c(Q1048835))
[ANSWER]
['Q3193', 'P17', {'concept': 'Q1048835'}] ['Q24846', 'P17', {'concept': 'Q1048835'}] ['Q20837', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q20837 property:P17 ?p . ?p rdf:type ontology:Q1048835 }
Ostseebad Insel Poel Juist Fanø
Did you mean Juist ?
Juist
['Ostseebad Insel Poel', 'country', {'concept': 'political territorial entity'}] ['Juist', 'country', {'concept': 'political territorial entity'}] ['Fanø', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Fanø property:country ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Fanø. Could you tell me the answer for that?
(Q20837,P17,c(Q1048835))
Q20837
['Q20837', 'P17', {'concept': 'Q1048835'}]
['Fanø', 'country', {'concept': 'political territorial entity'}]
[]
Q35
SYSTEM
Denmark
Q35
(Q20837,P17,c(Q1048835))
action filter_type
action find
entity Q20837
relation P17
type Q1048835
That administrative territory is in [ANSWER]
['Q20837', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q20837 property:P17 ?p . ?p rdf:type ontology:Q1048835 }
Denmark
That administrative territory is in Denmark
Denmark
action filter_type
action find
entity Fanø
relation country
type political territorial entity
['Fanø', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Fanø property:country ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q183
P127
Q1048835 Q41176 Q1002697
USER
How many political territories owned lesser number of buildings and periodical literatures than Germany ?
(c(Q41176)|c(Q1002697),P127,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q183
relation P127
type Q41176
type Q1002697
[[{'concept': 'Q41176'}, {'concept': 'Q1002697'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?f WHERE { { ?t property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q41176 } UNION { ?f rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1002697 . ?t property:P127 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P127 resource:Q183 . { { ?p rdf:type ontology:Q41176 } UNION { ?p rdf:type ontology:Q1002697 } } } } . FILTER ( ?u < ?d ) }
Germany
action count
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Germany
relation owned by
type building
type periodical literature
[[{'concept': 'building'}, {'concept': 'periodical literature'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?f WHERE { { ?t property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:building } UNION { ?f rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:periodical_literature . ?t property:owned_by ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:owned_by resource:Germany . { { ?p rdf:type ontology:building } UNION { ?p rdf:type ontology:periodical_literature } } } } . FILTER ( ?u < ?d ) }
[]
political territorial entity building periodical literature
SYSTEM
67
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q41176)|c(Q1002697),P127,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q183
relation P127
type Q41176
type Q1002697
[ANSWER]
[[{'concept': 'Q41176'}, {'concept': 'Q1002697'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?f WHERE { { ?t property:P127 ?f . ?f rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q41176 } UNION { ?f rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1002697 . ?t property:P127 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P127 resource:Q183 . { { ?p rdf:type ontology:Q41176 } UNION { ?p rdf:type ontology:Q1002697 } } } } . FILTER ( ?u < ?d ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
67
action count
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Germany
relation owned by
type building
type periodical literature
[[{'concept': 'building'}, {'concept': 'periodical literature'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?f WHERE { { ?t property:owned_by ?f . ?f rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:building } UNION { ?f rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:periodical_literature . ?t property:owned_by ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:owned_by resource:Germany . { { ?p rdf:type ontology:building } UNION { ?p rdf:type ontology:periodical_literature } } } } . FILTER ( ?u < ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q40
P127
Q1048835 Q41176 Q1002697
USER
And how about Austria?
(c(Q41176)|c(Q1002697),P127,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q40
relation P127
type Q41176
type Q1002697
[[{'concept': 'Q41176'}, {'concept': 'Q1002697'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?c ) WHERE { VALUES ( ?a ) { ( ontology:Q41176 ) ( ontology:Q1002697 ) } . ?e rdf:type ?a } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P127 resource:Q40 . { { ?v rdf:type ontology:Q41176 } UNION { ?v rdf:type ontology:Q1002697 } } } } . FILTER ( ?c < ?b ) }
Austria
action count
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Austria
relation owned by
type building
type periodical literature
[[{'concept': 'building'}, {'concept': 'periodical literature'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?c ) WHERE { VALUES ( ?a ) { ( ontology:building ) ( ontology:periodical_literature ) } . ?e rdf:type ?a } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:owned_by resource:Austria . { { ?v rdf:type ontology:building } UNION { ?v rdf:type ontology:periodical_literature } } } } . FILTER ( ?c < ?b ) }
[]
political territorial entity building periodical literature
SYSTEM
66
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q41176)|c(Q1002697),P127,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q40
relation P127
type Q41176
type Q1002697
[ANSWER]
[[{'concept': 'Q41176'}, {'concept': 'Q1002697'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?c ) WHERE { VALUES ( ?a ) { ( ontology:Q41176 ) ( ontology:Q1002697 ) } . ?e rdf:type ?a } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P127 resource:Q40 . { { ?v rdf:type ontology:Q41176 } UNION { ?v rdf:type ontology:Q1002697 } } } } . FILTER ( ?c < ?b ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
66
action count
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Austria
relation owned by
type building
type periodical literature
[[{'concept': 'building'}, {'concept': 'periodical literature'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?c ) WHERE { VALUES ( ?a ) { ( ontology:building ) ( ontology:periodical_literature ) } . ?e rdf:type ?a } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:owned_by resource:Austria . { { ?v rdf:type ontology:building } UNION { ?v rdf:type ontology:periodical_literature } } } } . FILTER ( ?c < ?b ) }
[]