Simple Question (Direct)
Simple Question
Q1232391
P106
Q12737077
USER
What are the professions of Dmitri Alexandrowitsch Klementz ?
(Q1232391,P106,c(Q12737077))
action filter_type
action find
entity Q1232391
relation P106
type Q12737077
['Q1232391', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1232391 property:P106 ?z }
Dmitri Alexandrowitsch Klementz
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation occupation
type occupation
['Dmitri Alexandrowitsch Klementz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Dmitri_Alexandrowitsch_Klementz property:occupation ?z }
[]
occupation
Q1792450 Q4773904 Q3621491
SYSTEM
art historian, anthropologist, archaeologist
Q1792450 Q4773904 Q3621491
(Q1232391,P106,c(Q12737077))
action filter_type
action find
entity Q1232391
relation P106
type Q12737077
The professions of Dmitri Alexandrowitsch Klementz are [ANSWERS]
['Q1232391', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1232391 property:P106 ?z }
art historian anthropologist archaeologist
The professions of Dmitri Alexandrowitsch Klementz are art historian, anthropologist and archaeologist
art historian anthropologist archaeologist
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation occupation
type occupation
['Dmitri Alexandrowitsch Klementz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Dmitri_Alexandrowitsch_Klementz property:occupation ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1792450
P101
Q502895
USER
Which person has specialisation in that occupation ?
(c(Q502895),P101,Q1792450)
action filter_type
action find_reverse
entity Q1792450
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q1792450']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P101 resource:Q1792450 }
art historian
action filter_type
action find_reverse
entity art historian
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'art historian']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:field_of_work resource:art_historian }
[]
common name
Clarification for simple ques.
Q1792450
SYSTEM
Did you mean art historian ?
Q1792450 Q4773904 Q3621491
(c(Q502895),P101,Q1792450) (c(Q502895),P101,Q4773904) (c(Q502895),P101,Q3621491)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q1792450'] [{'concept': 'Q502895'}, 'P101', 'Q4773904'] [{'concept': 'Q502895'}, 'P101', 'Q3621491']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P101 resource:Q1792450 }
art historian anthropologist archaeologist
Did you mean art historian ?
art historian
[{'concept': 'common name'}, 'field of work', 'art historian'] [{'concept': 'common name'}, 'field of work', 'anthropologist'] [{'concept': 'common name'}, 'field of work', 'archaeologist']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:field_of_work resource:art_historian }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P101,Q1792450)
[{'concept': 'Q502895'}, 'P101', 'Q1792450']
[{'concept': 'common name'}, 'field of work', 'art historian']
[]
Q20967511
SYSTEM
Juan Miguel Serrera
Q20967511
(c(Q502895),P101,Q1792450)
action filter_type
action find_reverse
entity Q1792450
relation P101
type Q502895
[ANSWER] has specialisation in that occupation
[{'concept': 'Q502895'}, 'P101', 'Q1792450']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P101 resource:Q1792450 }
Juan Miguel Serrera
Juan Miguel Serrera has specialisation in that occupation
Juan Miguel Serrera
action filter_type
action find_reverse
entity art historian
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'art historian']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:field_of_work resource:art_historian }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3621491
P425
Q1047113
USER
What is associated with the field of occupation archaeologist ?
(Q3621491,P425,c(Q1047113))
action filter_type
action find
entity Q3621491
relation P425
type Q1047113
['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?u WHERE { resource:Q3621491 property:P425 ?u . ?u rdf:type ontology:Q1047113 }
archaeologist
action filter_type
action find
entity archaeologist
relation field of this occupation
type special field
['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?u WHERE { resource:archaeologist property:field_of_this_occupation ?u . ?u rdf:type ontology:special_field }
[]
special field
Q23498
SYSTEM
archaeology
Q23498
(Q3621491,P425,c(Q1047113))
action filter_type
action find
entity Q3621491
relation P425
type Q1047113
[ANSWER] is associated with the field of occupation archaeologist
['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?u WHERE { resource:Q3621491 property:P425 ?u . ?u rdf:type ontology:Q1047113 }
archaeology
Archaeology is associated with the field of occupation archaeologist
archaeology
action filter_type
action find
entity archaeologist
relation field of this occupation
type special field
['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?u WHERE { resource:archaeologist property:field_of_this_occupation ?u . ?u rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3621491
P101
Q502895
USER
Which person works in the domain of that occupation ?
(c(Q502895),P101,Q23498)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q23498']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P101 resource:Q3621491 }
archaeologist
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeology']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:field_of_work resource:archaeologist }
[]
common name
Q102139
SYSTEM
Margrethe II of Denmark
Q102139
(c(Q502895),P101,Q23498)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[ANSWER] works in the domain of that occupation
[{'concept': 'Q502895'}, 'P101', 'Q23498']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P101 resource:Q3621491 }
Margrethe II of Denmark
Margrethe II of Denmark works in the domain of that occupation
Margrethe II of Denmark
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeology']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:field_of_work resource:archaeologist }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1232391
P21
Q290
USER
Which sex does Dmitri Alexandrowitsch Klementz possess ?
(Q1232391,P21,c(Q290))
action filter_type
action find
entity Q1232391
relation P21
type Q290
['Q1232391', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q1232391 property:P21 ?m . ?m rdf:type ontology:Q290 }
Dmitri Alexandrowitsch Klementz
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation gender
type sex
['Dmitri Alexandrowitsch Klementz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1232391,P21,c(Q290))
action filter_type
action find
entity Q1232391
relation P21
type Q290
Dmitri Alexandrowitsch Klementz possesses un [ANSWER]
['Q1232391', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q1232391 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Dmitri Alexandrowitsch Klementz possesses un male
male
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation gender
type sex
['Dmitri Alexandrowitsch Klementz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1232391
P20
Q56061
USER
Where did that person expire ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q1232391
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1232391 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Dmitri Alexandrowitsch Klementz
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q1232391
relation P20
type Q56061
That person expired in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1232391 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Moscow
That person expired in Moscow
Moscow
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1232391
P27
Q3024240
USER
Which former country does Dmitri Alexandrowitsch Klementz belong to ?
(Q1232391,P27,c(Q3024240))
action filter_type
action find
entity Q1232391
relation P27
type Q3024240
['Q1232391', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?b WHERE { resource:Q1232391 property:P27 ?b . ?b rdf:type ontology:Q3024240 }
Dmitri Alexandrowitsch Klementz
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation country of citizenship
type former country
['Dmitri Alexandrowitsch Klementz', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?b WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:country_of_citizenship ?b . ?b rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q1232391,P27,c(Q3024240))
action filter_type
action find
entity Q1232391
relation P27
type Q3024240
Dmitri Alexandrowitsch Klementz belongs the [ANSWER]
['Q1232391', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?b WHERE { resource:Q1232391 property:P27 ?b . ?b rdf:type ontology:Q3024240 }
Russian Empire
Dmitri Alexandrowitsch Klementz belongs the Russian Empire
Russian Empire
action filter_type
action find
entity Dmitri Alexandrowitsch Klementz
relation country of citizenship
type former country
['Dmitri Alexandrowitsch Klementz', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?b WHERE { resource:Dmitri_Alexandrowitsch_Klementz property:country_of_citizenship ?b . ?b rdf:type ontology:former_country }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7938394
Q3024240
USER
And what about Vladimir Karlovich Roth?
(Q7938394,P27,c(Q3024240))
action filter_type
action find
entity Q7938394
relation P27
type Q3024240
['Q7938394', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?n WHERE { resource:Q7938394 property:P27 ?n . ?n rdf:type ontology:Q3024240 }
Vladimir Karlovich Roth
action filter_type
action find
entity Vladimir Karlovich Roth
relation country of citizenship
type former country
['Vladimir Karlovich Roth', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?n WHERE { resource:Vladimir_Karlovich_Roth property:country_of_citizenship ?n . ?n rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q7938394,P27,c(Q3024240))
action filter_type
action find
entity Q7938394
relation P27
type Q3024240
[ANSWER]
['Q7938394', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?n WHERE { resource:Q7938394 property:P27 ?n . ?n rdf:type ontology:Q3024240 }
Russian Empire
Russian Empire
action filter_type
action find
entity Vladimir Karlovich Roth
relation country of citizenship
type former country
['Vladimir Karlovich Roth', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?n WHERE { resource:Vladimir_Karlovich_Roth property:country_of_citizenship ?n . ?n rdf:type ontology:former_country }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q35395
P921
Q1047113 Q838948 Q2342494
USER
Which special fields were discussed in more number of works of art or collectables than phonetics ?
(c(Q838948)|c(Q2342494),P921,c(Q1047113))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q838948
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q35395
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?a WHERE { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?l rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P921 resource:Q35395 . { { ?s rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q2342494 } } } } . FILTER ( ?z > ?n ) }
phonetics
action greater
action union
action find_reverse_tuple_counts
relation main subject
type special field
type work of art
action find_reverse_tuple_counts
relation main subject
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity phonetics
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?a WHERE { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?l rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:main_subject resource:phonetics . { { ?s rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:collectable } } } } . FILTER ( ?z > ?n ) }
[]
special field work of art collectable
Q207011 Q1299608 Q614304
SYSTEM
neuroscience, iron law of oligarchy, pharmacy
Q441 Q83042 Q128406 Q80006 Q60195 Q201486 Q7218 Q207011 Q23498 Q614304 Q5891 Q9053037 Q1071 Q7867 Q21198 Q216685 Q7754 Q199655 Q23404 Q34178 Q81009 Q1299608 Q200253
(c(Q838948)|c(Q2342494),P921,c(Q1047113))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q838948
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q35395
relation P921
type Q838948
type Q2342494
[ANSWERS] were discussed in more number of works of art or collectables than phonetics
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?a WHERE { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?l rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P921 resource:Q35395 . { { ?s rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q2342494 } } } } . FILTER ( ?z > ?n ) }
botany neurology pharmacology computer programming semiotics history of science toxicology neuroscience archaeology pharmacy philosophy spatial planning geography psychiatry computer science orthopedics mathematical analysis library science anthropology theology rhetoric iron law of oligarchy traditional Chinese medicine
Neuroscience, iron law of oligarchy and pharmacy were discussed in more number of works of art or collectables than phonetics
neuroscience iron law of oligarchy pharmacy
action greater
action union
action find_reverse_tuple_counts
relation main subject
type special field
type work of art
action find_reverse_tuple_counts
relation main subject
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity phonetics
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?a WHERE { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?l rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:main_subject resource:phonetics . { { ?s rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:collectable } } } } . FILTER ( ?z > ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q650276
P921
Q1047113 Q838948 Q2342494
USER
And what about Mariology?
(c(Q838948)|c(Q2342494),P921,c(Q1047113))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q838948
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q650276
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P921 ?r . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P921 ?r . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q2342494 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P921 resource:Q650276 . { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?w rdf:type ?k } } } . FILTER ( ?n > ?g ) }
Mariology
action greater
action union
action find_reverse_tuple_counts
relation main subject
type special field
type work of art
action find_reverse_tuple_counts
relation main subject
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity Mariology
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:main_subject ?r . ?r rdf:type ontology:special_field . ?o rdf:type ontology:work_of_art } UNION { ?o property:main_subject ?r . ?r rdf:type ontology:special_field . ?o rdf:type ontology:collectable } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:main_subject resource:Mariology . { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?w rdf:type ?k } } } . FILTER ( ?n > ?g ) }
[]
special field work of art collectable
Q207011 Q1299608 Q614304
SYSTEM
neuroscience, iron law of oligarchy, pharmacy
Q441 Q83042 Q128406 Q80006 Q60195 Q201486 Q7218 Q207011 Q23498 Q614304 Q5891 Q9053037 Q1071 Q7867 Q21198 Q216685 Q7754 Q199655 Q23404 Q34178 Q81009 Q1299608 Q200253
(c(Q838948)|c(Q2342494),P921,c(Q1047113))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q838948
action find_reverse_tuple_counts
relation P921
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q650276
relation P921
type Q838948
type Q2342494
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P921 ?r . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P921 ?r . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q2342494 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P921 resource:Q650276 . { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?w rdf:type ?k } } } . FILTER ( ?n > ?g ) }
botany neurology pharmacology computer programming semiotics history of science toxicology neuroscience archaeology pharmacy philosophy spatial planning geography psychiatry computer science orthopedics mathematical analysis library science anthropology theology rhetoric iron law of oligarchy traditional Chinese medicine
neuroscience iron law of oligarchy pharmacy
action greater
action union
action find_reverse_tuple_counts
relation main subject
type special field
type work of art
action find_reverse_tuple_counts
relation main subject
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity Mariology
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:main_subject ?r . ?r rdf:type ontology:special_field . ?o rdf:type ontology:work_of_art } UNION { ?o property:main_subject ?r . ?r rdf:type ontology:special_field . ?o rdf:type ontology:collectable } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:main_subject resource:Mariology . { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?w rdf:type ?k } } } . FILTER ( ?n > ?g ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q58778 Q1047113
USER
How many systems are atmost 1 special field a part of ?
(c(Q1047113),P361,c(Q58778))
action count
action atmost
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
value 1
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P361 ?f . ?f rdf:type ontology:Q58778 . ?o rdf:type ontology:Q1047113 } GROUP BY ?f } . FILTER ( ?z <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation part of
type system
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:part_of ?f . ?f rdf:type ontology:system . ?o rdf:type ontology:special_field } GROUP BY ?f } . FILTER ( ?z <= 1 ) }
[]
system special field
SYSTEM
63
Q829055 Q757568 Q2251494 Q396622 Q1116609 Q1824206 Q856625 Q468999 Q289 Q939202 Q3234036 Q730906 Q192161 Q1213508 Q622662 Q12457 Q483426 Q1415395 Q607081 Q2151621 Q6456916 Q720362 Q2595720 Q1780543 Q8091 Q940913 Q28108 Q26240 Q16203461 Q1127794 Q2518196 Q220695 Q601401 Q161779 Q889737 Q16782623 Q188193 Q620565 Q1370826 Q1016708 Q27666180 Q1368944 Q126793 Q746359 Q5466615 Q1 Q14290846 Q435964 Q862571 Q16070574 Q17488292 Q512417 Q1068715 Q3565868 Q8148 Q503327 Q49845 Q3477363 Q207652 Q3491904 Q1660132 Q835696 Q2285982
(c(Q1047113),P361,c(Q58778))
action count
action atmost
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
value 1
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:P361 ?f . ?f rdf:type ontology:Q58778 . ?o rdf:type ontology:Q1047113 } GROUP BY ?f } . FILTER ( ?z <= 1 ) }
commercial shipping Atomic units School system in Germany agribusiness United States customary units supply chain Branch of libraries Planck units television Metre–tonne–second system of units Gaussian units MKSA system of units formal language Gravitational metric system heavy industry International System of Units intranet film industry textile industry energy industry national economy silviculture hierarchy of genres communication Technology grammar continuous track political system centimetre–gram–second system of units International System of Quantities valvetrain insurance industry wholesale trade spatial reference system ground segment English units biological system Apothecaries' system electrostatic units Burmese units of measurement electromagnetic unit system game industry retail music industry foot–pound–second system universe Imperial and US customary measurement systems Obsolete Russian units of measurement petroleum industry petrochemical industry logical system MKS system of units telecommunications network rail transport industry thermodynamic system mail aerospace industry chemical industry urban rail transit Real estate economics Deep Space Network ferrous metallurgy
63
action count
action atmost
action find_reverse_tuple_counts
relation part of
type system
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?z ) WHERE { ?o property:part_of ?f . ?f rdf:type ontology:system . ?o rdf:type ontology:special_field } GROUP BY ?f } . FILTER ( ?z <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q649 Q15180
P840
Q15416
USER
How many television programs have their setting located at Moscow and Soviet Union ?
(c(Q15416),P840,Q649) (c(Q15416),P840,Q15180)
action count
action intersection
action filter_type
action find_reverse
entity Q649
relation P840
type Q15416
action filter_type
action find_reverse
entity Q15180
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q649'] [{'concept': 'Q15416'}, 'P840', 'Q15180']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P840 resource:Q15180 . ?t rdf:type ontology:Q15416 . ?t property:P840 resource:Q649 . ?t rdf:type ontology:Q15416 }
Moscow Soviet Union
action count
action intersection
action filter_type
action find_reverse
entity Moscow
relation narrative location
type television program
action filter_type
action find_reverse
entity Soviet Union
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Moscow'] [{'concept': 'television program'}, 'narrative location', 'Soviet Union']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:narrative_location resource:Soviet_Union . ?t rdf:type ontology:television_program . ?t property:narrative_location resource:Moscow . ?t rdf:type ontology:television_program }
[]
television program
SYSTEM
2
Q4749911 Q32235
(c(Q15416),P840,Q649) (c(Q15416),P840,Q15180)
action count
action intersection
action filter_type
action find_reverse
entity Q649
relation P840
type Q15416
action filter_type
action find_reverse
entity Q15180
relation P840
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P840', 'Q649'] [{'concept': 'Q15416'}, 'P840', 'Q15180']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P840 resource:Q15180 . ?t rdf:type ontology:Q15416 . ?t property:P840 resource:Q649 . ?t rdf:type ontology:Q15416 }
An Englishman Abroad Stalin
2
action count
action intersection
action filter_type
action find_reverse
entity Moscow
relation narrative location
type television program
action filter_type
action find_reverse
entity Soviet Union
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Moscow'] [{'concept': 'television program'}, 'narrative location', 'Soviet Union']
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:narrative_location resource:Soviet_Union . ?t rdf:type ontology:television_program . ?t property:narrative_location resource:Moscow . ?t rdf:type ontology:television_program }
[]