Simple Question (Direct)
Simple Question
Q1631627
P27
Q15617994
USER
Which administrative territory is Brian Klugman a civilian of ?
(Q1631627,P27,c(Q15617994))
action filter_type
action find
entity Q1631627
relation P27
type Q15617994
['Q1631627', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1631627 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Brian Klugman
action filter_type
action find
entity Brian Klugman
relation country of citizenship
type designation for an administrative territorial entity
['Brian Klugman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Brian_Klugman property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1631627,P27,c(Q15617994))
action filter_type
action find
entity Q1631627
relation P27
type Q15617994
The [ANSWER] is Brian Klugman a civilian of
['Q1631627', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1631627 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
The United States of America is Brian Klugman a civilian of
United States of America
action filter_type
action find
entity Brian Klugman
relation country of citizenship
type designation for an administrative territorial entity
['Brian Klugman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Brian_Klugman property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1631627
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q30)
action filter_type
action find_reverse
entity Q1631627
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q30']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q1631627 . ?a rdf:type ontology:Q838948 }
Brian Klugman
action filter_type
action find_reverse
entity Brian Klugman
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'United States of America']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Brian_Klugman . ?a rdf:type ontology:work_of_art }
[]
work of art
Q123742 Q1626514 Q1428139
SYSTEM
Cloverfield, Vacancy 2: The First Cut, Dreamland
Q1428139 Q123742 Q1747999 Q1626514 Q4999812
(c(Q838948),P161,Q30)
action filter_type
action find_reverse
entity Q1631627
relation P161
type Q838948
That person star John [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q30']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q1631627 . ?a rdf:type ontology:Q838948 }
Dreamland Cloverfield National Lampoon's Adam & Eve Vacancy 2: The First Cut Burning Annie
That person star John Cloverfield, Vacancy 2: The First Cut and Dreamland
Cloverfield Vacancy 2: The First Cut Dreamland
action filter_type
action find_reverse
entity Brian Klugman
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'United States of America']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Brian_Klugman . ?a rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1801371 Q1428139
P19 P495
Q15617994
USER
Which administrative territories are the origins of Dreamland or are the birthplace of Lambert Huys ?
OR((Q1428139,P495,c(Q15617994)), (Q1801371,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1428139
relation P495
action find
entity Q1801371
relation P19
type Q15617994
{'OR': [['Q1428139', 'P495', {'concept': 'Q15617994'}], ['Q1801371', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q1428139 property:P495 ?d } UNION { resource:Q1801371 property:P19 ?d } } }
Lambert Huys Dreamland
action filter_type
action union
action find
entity Dreamland
relation country of origin
action find
entity Lambert Huys
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Dreamland', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Lambert Huys', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dreamland property:country_of_origin ?d } UNION { resource:Lambert_Huys property:place_of_birth ?d } } }
[]
designation for an administrative territorial entity
Q30 Q557523
SYSTEM
United States of America, Ankum
Q30 Q557523
OR((Q1428139,P495,c(Q15617994)), (Q1801371,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1428139
relation P495
action find
entity Q1801371
relation P19
type Q15617994
[ANSWERS] are the origins of Dreamland or are the birthplace of Lambert Huys
{'OR': [['Q1428139', 'P495', {'concept': 'Q15617994'}], ['Q1801371', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q1428139 property:P495 ?d } UNION { resource:Q1801371 property:P19 ?d } } }
United States of America Ankum
United States of America and Ankum are the origins of Dreamland or are the birthplace of Lambert Huys
United States of America Ankum
action filter_type
action union
action find
entity Dreamland
relation country of origin
action find
entity Lambert Huys
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Dreamland', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Lambert Huys', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Dreamland property:country_of_origin ?d } UNION { resource:Lambert_Huys property:place_of_birth ?d } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with more number of administrative territories than Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?p ) WHERE { ?w property:P530 ?n . ?w rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q691 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?p > ?y ) }
Papua New Guinea
action count
action greater
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 Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?p ) WHERE { ?w property:diplomatic_relation ?n . ?w rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p > ?y ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?p ) WHERE { ?w property:P530 ?n . ?w rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q691 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?p > ?y ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
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 Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?p ) WHERE { ?w property:diplomatic_relation ?n . ?w rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q16
P530
Q15617994 Q1048835
USER
And also tell me about Canada?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?u ) WHERE { ?m property:P530 ?f . ?m rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q16 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?u > ?n ) }
Canada
action count
action greater
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?u ) WHERE { ?m property:diplomatic_relation ?f . ?m rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?u > ?n ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?u ) WHERE { ?m property:P530 ?f . ?m rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q16 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?u > ?n ) }
Germany Australia
2
action count
action greater
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?u ) WHERE { ?m property:diplomatic_relation ?f . ?m rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?u > ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P17
Q15617994
USER
Which administrative territory does United States of America belong to ?
(Q30,P17,c(Q15617994))
action filter_type
action find
entity Q30
relation P17
type Q15617994
['Q30', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q30 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:United_States_of_America property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q30,P17,c(Q15617994))
action filter_type
action find
entity Q30
relation P17
type Q15617994
[ANSWER] belongs to [ANSWER]
['Q30', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q30 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
United States of America belongs to United States of America
United States of America
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:United_States_of_America property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15969649 Q1631627
P106
Q12737077
USER
Which occupations are the job of Brian Klugman or Henri Armand Rolle ?
OR((Q1631627,P106,c(Q12737077)), (Q15969649,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1631627
relation P106
action find
entity Q15969649
relation P106
type Q12737077
{'OR': [['Q1631627', 'P106', {'concept': 'Q12737077'}], ['Q15969649', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1631627 property:P106 ?h } UNION { resource:Q15969649 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
Henri Armand Rolle Brian Klugman
action filter_type
action union
action find
entity Brian Klugman
relation occupation
action find
entity Henri Armand Rolle
relation occupation
type occupation
{'OR': [['Brian Klugman', 'occupation', {'concept': 'occupation'}], ['Henri Armand Rolle', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Brian_Klugman property:occupation ?h } UNION { resource:Henri_Armand_Rolle property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]
occupation
Q33999 Q10798782 Q82955 Q36180
SYSTEM
actor, television actor, politician, writer
Q33999 Q10798782 Q82955 Q36180
OR((Q1631627,P106,c(Q12737077)), (Q15969649,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1631627
relation P106
action find
entity Q15969649
relation P106
type Q12737077
The [ANSWERS] are the job of Brian Klugman or Henri Armand Rolle
{'OR': [['Q1631627', 'P106', {'concept': 'Q12737077'}], ['Q15969649', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1631627 property:P106 ?h } UNION { resource:Q15969649 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
actor television actor politician writer
The actor, television actor, politician and writer are the job of Brian Klugman or Henri Armand Rolle
actor television actor politician writer
action filter_type
action union
action find
entity Brian Klugman
relation occupation
action find
entity Henri Armand Rolle
relation occupation
type occupation
{'OR': [['Brian Klugman', 'occupation', {'concept': 'occupation'}], ['Henri Armand Rolle', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Brian_Klugman property:occupation ?h } UNION { resource:Henri_Armand_Rolle property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q838948 Q3305213
USER
How many administrative territories are expressed in atmost 2 works of art and paintings ?
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?t property:P180 ?p . ?p rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P180 ?p . ?p rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q3305213 } } GROUP BY ?p } . FILTER ( ?z <= 2 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 2
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?t property:depicts ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:work_of_art } UNION { ?t property:depicts ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:painting } } GROUP BY ?p } . FILTER ( ?z <= 2 ) }
[]
designation for an administrative territorial entity work of art painting
SYSTEM
93
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 2
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?t property:P180 ?p . ?p rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P180 ?p . ?p rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q3305213 } } GROUP BY ?p } . FILTER ( ?z <= 2 ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
93
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 2
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?t property:depicts ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:work_of_art } UNION { ?t property:depicts ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:painting } } GROUP BY ?p } . FILTER ( ?z <= 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of exactly 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { FILTER ( ?j = 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P417 ?z . ?z rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?z } }
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { FILTER ( ?j = 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:patron_saint ?z . ?z rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?z } }
[]
common name occupation
SYSTEM
3
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { FILTER ( ?j = 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P417 ?z . ?z rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?z } }
Luke the Evangelist Saint Barbara Agatha of Sicily
3
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { FILTER ( ?j = 3 ) . { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:patron_saint ?z . ?z rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?z } }
[]