Simple Question (Direct)
Simple Question
Q5110936
P108
Q43229
USER
Which organizations employ Christine Bleakley ?
(Q5110936,P108,c(Q43229))
action filter_type
action find
entity Q5110936
relation P108
type Q43229
['Q5110936', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q5110936 property:P108 ?i . ?i rdf:type ontology:Q43229 }
Christine Bleakley
action filter_type
action find
entity Christine Bleakley
relation employer
type organization
['Christine Bleakley', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:Christine_Bleakley property:employer ?i . ?i rdf:type ontology:organization }
[]
organization
Q9531 Q3140604
SYSTEM
BBC, ITV plc
Q9531 Q3140604
(Q5110936,P108,c(Q43229))
action filter_type
action find
entity Q5110936
relation P108
type Q43229
[ANSWERS] employ Christine Bleakley
['Q5110936', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q5110936 property:P108 ?i . ?i rdf:type ontology:Q43229 }
BBC ITV plc
BBC and ITV plc employ Christine Bleakley
BBC ITV plc
action filter_type
action find
entity Christine Bleakley
relation employer
type organization
['Christine Bleakley', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:Christine_Bleakley property:employer ?i . ?i rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9531
P272
Q15416
USER
Which television programs were released from the production company named that organization ?
(c(Q15416),P272,Q9531)
action filter_type
action find_reverse
entity Q9531
relation P272
type Q15416
[{'concept': 'Q15416'}, 'P272', 'Q9531']
SELECT DISTINCT ?w WHERE { ?w property:P272 resource:Q9531 . ?w rdf:type ontology:Q15416 }
BBC
action filter_type
action find_reverse
entity BBC
relation production company
type television program
[{'concept': 'television program'}, 'production company', 'BBC']
SELECT DISTINCT ?w WHERE { ?w property:production_company resource:BBC . ?w rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q9531
SYSTEM
Did you mean BBC ?
Q9531 Q3140604
(c(Q15416),P272,Q9531) (c(Q15416),P272,Q3140604)
[ANSWER]
[{'concept': 'Q15416'}, 'P272', 'Q9531'] [{'concept': 'Q15416'}, 'P272', 'Q3140604']
SELECT DISTINCT ?w WHERE { ?w property:P272 resource:Q9531 . ?w rdf:type ontology:Q15416 }
BBC ITV plc
Did you mean BBC ?
BBC
[{'concept': 'television program'}, 'production company', 'BBC'] [{'concept': 'television program'}, 'production company', 'ITV plc']
SELECT DISTINCT ?w WHERE { ?w property:production_company resource:BBC . ?w rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15416),P272,Q9531)
[{'concept': 'Q15416'}, 'P272', 'Q9531']
[{'concept': 'television program'}, 'production company', 'BBC']
[]
Q2297818 Q726001 Q901203
SYSTEM
Love Is the Devil: Study for a Portrait of Francis Bacon, Blackadder: Back & Forth, Magical Mystery Tour
Q377165 Q12859919 Q1230632 Q1896766 Q18645348 Q14920502 Q3382188 Q3486763 Q7235252 Q3276933 Q726001 Q3702327 Q2620081 Q2297818 Q16740169 Q901203 Q3986228 Q7561145 Q983854
(c(Q15416),P272,Q9531)
action filter_type
action find_reverse
entity Q9531
relation P272
type Q15416
[ANSWERS] were released from the production company named that organization
[{'concept': 'Q15416'}, 'P272', 'Q9531']
SELECT DISTINCT ?w WHERE { ?w property:P272 resource:Q9531 . ?w rdf:type ontology:Q15416 }
Planet Earth The Imaginatively Titled Punt & Dennis Show Tinker Tailor Soldier Spy The Fades Teacher Didn't Tell Me What Remains Piano Blues Schalcken the Painter Potter The Trap: What Happened to Our Dream of Freedom Blackadder: Back & Forth Dansez pentru tine The Pink Floyd and Syd Barrett Story Love Is the Devil: Study for a Portrait of Francis Bacon Life and Death Row Magical Mystery Tour The Celts Song of Summer Little Dieter Needs to Fly
Love Is the Devil: Study for a Portrait of Francis Bacon, Blackadder: Back & Forth and Magical Mystery Tour were released from the production company named that organization
Love Is the Devil: Study for a Portrait of Francis Bacon Blackadder: Back & Forth Magical Mystery Tour
action filter_type
action find_reverse
entity BBC
relation production company
type television program
[{'concept': 'television program'}, 'production company', 'BBC']
SELECT DISTINCT ?w WHERE { ?w property:production_company resource:BBC . ?w rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9531
P159
Q811979 Q56061
USER
How many architectural structures and administrative territories are the head office for BBC located ?
(Q9531,P159,c(Q811979)) (Q9531,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q9531
relation P159
type Q811979
action filter_type
action find
entity Q9531
relation P159
type Q56061
['Q9531', 'P159', {'concept': 'Q811979'}] ['Q9531', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?l . VALUES ( ?l ) { ( ontology:Q811979 ) ( ontology:Q56061 ) } }
BBC
action count
action union
action filter_type
action find
entity BBC
relation headquarters location
type architectural structure
action filter_type
action find
entity BBC
relation headquarters location
type administrative territorial entity
['BBC', 'headquarters location', {'concept': 'architectural structure'}] ['BBC', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?l . VALUES ( ?l ) { ( ontology:architectural_structure ) ( ontology:administrative_territorial_entity ) } }
[]
architectural structure administrative territorial entity
SYSTEM
1 architectural structures and 1 administrative territories
Q2914560 Q84
(Q9531,P159,c(Q811979)) (Q9531,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q9531
relation P159
type Q811979
action filter_type
action find
entity Q9531
relation P159
type Q56061
[ANSWER]
['Q9531', 'P159', {'concept': 'Q811979'}] ['Q9531', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?l . VALUES ( ?l ) { ( ontology:Q811979 ) ( ontology:Q56061 ) } }
Broadcasting House London
1 architectural structures and 1 administrative territories
action count
action union
action filter_type
action find
entity BBC
relation headquarters location
type architectural structure
action filter_type
action find
entity BBC
relation headquarters location
type administrative territorial entity
['BBC', 'headquarters location', {'concept': 'architectural structure'}] ['BBC', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ?l . VALUES ( ?l ) { ( ontology:architectural_structure ) ( ontology:administrative_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q726001
P272
Q43229
USER
Who produced Blackadder: Back & Forth ?
(Q726001,P272,c(Q43229))
action filter_type
action find
entity Q726001
relation P272
type Q43229
['Q726001', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q726001 property:P272 ?l . ?l rdf:type ontology:Q43229 }
Blackadder: Back & Forth
action filter_type
action find
entity Blackadder: Back & Forth
relation production company
type organization
['Blackadder: Back & Forth', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Blackadder:_Back_&_Forth property:production_company ?l . ?l rdf:type ontology:organization }
[]
organization
Q9531 Q487494
SYSTEM
BBC, Tesco
Q9531 Q487494
(Q726001,P272,c(Q43229))
action filter_type
action find
entity Q726001
relation P272
type Q43229
[ANSWERS] produced Blackadder: Back & Forth
['Q726001', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q726001 property:P272 ?l . ?l rdf:type ontology:Q43229 }
BBC Tesco
BBC and Tesco produced Blackadder: Back & Forth
BBC Tesco
action filter_type
action find
entity Blackadder: Back & Forth
relation production company
type organization
['Blackadder: Back & Forth', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Blackadder:_Back_&_Forth property:production_company ?l . ?l rdf:type ontology:organization }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q726001
Q1269299
USER
And which business organization?
(Q726001,P272,c(Q1269299))
action filter_type
action find
entity Q726001
relation P272
type Q1269299
['Q726001', 'P272', {'concept': 'Q1269299'}]
SELECT DISTINCT ?n WHERE { resource:Q726001 property:P272 ?n . ?n rdf:type ontology:Q1269299 }
Blackadder: Back & Forth
action filter_type
action find
entity Blackadder: Back & Forth
relation production company
type type of business entity
['Blackadder: Back & Forth', 'production company', {'concept': 'type of business entity'}]
SELECT DISTINCT ?n WHERE { resource:Blackadder:_Back_&_Forth property:production_company ?n . ?n rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q918390
SYSTEM
Sky plc
Q918390
(Q726001,P272,c(Q1269299))
action filter_type
action find
entity Q726001
relation P272
type Q1269299
[ANSWER]
['Q726001', 'P272', {'concept': 'Q1269299'}]
SELECT DISTINCT ?n WHERE { resource:Q726001 property:P272 ?n . ?n rdf:type ontology:Q1269299 }
Sky plc
Sky plc
action filter_type
action find
entity Blackadder: Back & Forth
relation production company
type type of business entity
['Blackadder: Back & Forth', 'production company', {'concept': 'type of business entity'}]
SELECT DISTINCT ?n WHERE { resource:Blackadder:_Back_&_Forth property:production_company ?n . ?n rdf:type ontology:type_of_business_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q1269299 Q1269299
USER
How many business organizations are the parent company of atmost 2 business organizations ?
(c(Q1269299),P355,c(Q1269299))
action count
action atmost
action find_tuple_counts
relation P355
type Q1269299
type Q1269299
value 2
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:P355 ?f . ?d rdf:type ontology:Q1269299 . ?f rdf:type ontology:Q1269299 } GROUP BY ?d } . FILTER ( ?j <= 2 ) }
action count
action atmost
action find_tuple_counts
relation subsidiary
type type of business entity
type type of business entity
value 2
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:subsidiary ?f . ?d rdf:type ontology:type_of_business_entity . ?f rdf:type ontology:type_of_business_entity } GROUP BY ?d } . FILTER ( ?j <= 2 ) }
[]
type of business entity type of business entity
SYSTEM
92
Q1798370 Q1232514 Q1418 Q20800404 Q1372049 Q18341667 Q643290 Q912778 Q83716 Q8766 Q2945931 Q14903417 Q445007 Q6128861 Q975655 Q6108019 Q194360 Q4045977 Q11229276 Q2283 Q11243007 Q1198156 Q333498 Q499207 Q494917 Q1136226 Q7050523 Q690966 Q1435702 Q3117359 Q753684 Q294508 Q1181484 Q243278 Q7433758 Q5431955 Q856411 Q7107013 Q20112954 Q7240301 Q58707 Q1045758 Q17193081 Q386414 Q322601 Q12581123 Q639447 Q190464 Q7875835 Q1557223 Q53247 Q191715 Q37156 Q806259 Q5136910 Q11311474 Q219960 Q1540297 Q25866375 Q329347 Q4652575 Q327751 Q304962 Q1937503 Q739416 Q206921 Q1576915 Q946713 Q2144525 Q113215 Q207784 Q967868 Q548278 Q544847 Q855313 Q680991 Q514265 Q5215769 Q918390 Q19900 Q128577 Q882107 Q15944611 Q1424962 Q11318827 Q1295105 Q11368062 Q3514518 Q487907 Q7414 Q193412 Q219501
(c(Q1269299),P355,c(Q1269299))
action count
action atmost
action find_tuple_counts
relation P355
type Q1269299
type Q1269299
value 2
[ANSWER]
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:P355 ?f . ?d rdf:type ontology:Q1269299 . ?f rdf:type ontology:Q1269299 } GROUP BY ?d } . FILTER ( ?j <= 2 ) }
CGI Group Resona Holdings Nokia Alphabet Inc. Japan Post Holdings Nissin Foods Holdings RATP OTP Bank Aer Lingus British Airways Centre national de prévention et de protection (France) Delhaize Group Altria Major Cineplex Skandinaviska Enskilda Banken JD Sports American Express Belmond LIXIL Group Microsoft SG Holdings FirstGroup Bombardier Inc. Astrium Virgin Group United Aircraft Corporation Nord-Trøndelag Elektrisitetsverk Forbo Holding Whitbread Carrefour Group Atari, SA ALROSA Debenhams Rolls-Royce Scientific Games Corporation Falkland Islands Holdings British American Tobacco Oslo Børs Holding Sega Games Premier Foods Aeroflot United Technologies Corporation Izukyu Holdings PhosAgro Seiko GS Holdings Seven & I Holdings Co. HSBC Holdings US Airways Group Lawson Panasonic Time Warner IBM Bandai Namco Holdings Clyde Engineering Square Enix Holdings Scania Sanoma Share plc Lukoil AMC Networks Kraft Foods Mitsubishi Estate Terex BAE Systems Pfizer Koei Tecmo Holdings SunEdison Scripps Networks Interactive Carlsberg Group Square Enix NextEra Energy Standard Chartered Qualcomm BOC Hong Kong Arriva Autonomy Corporation MS&AD Insurance Group Holdings Sky plc Oracle Corporation JX Holdings 1&1 Internet SE Altice InterContinental Hotels Group Tsuruha Holdings Nomura Holdings Maruzen CHI Holdings TalkTalk Group Bank of America The Walt Disney Company Texas Instruments Saab Group
92
action count
action atmost
action find_tuple_counts
relation subsidiary
type type of business entity
type type of business entity
value 2
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:subsidiary ?f . ?d rdf:type ontology:type_of_business_entity . ?f rdf:type ontology:type_of_business_entity } GROUP BY ?d } . FILTER ( ?j <= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P248
Q5292 Q2342494 Q43229
USER
Which organizations have been acknowledged in min number of encyclopedias or collectables ?
(c(Q43229),P248,c(Q5292)|c(Q2342494))
action argmin
action union
action find_tuple_counts
relation P248
type Q43229
type Q5292
action find_tuple_counts
relation P248
type Q43229
type Q2342494
[{'concept': 'Q43229'}, 'P248', [{'concept': 'Q5292'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?w WHERE { { ?w property:P248 ?x . ?x rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q43229 } UNION { ?w property:P248 ?x . ?x rdf:type ontology:Q5292 . ?w rdf:type ontology:Q43229 } } GROUP BY ?w } . FILTER ( ?j = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { { ?h property:P248 ?d . ?h rdf:type ontology:Q43229 . ?d rdf:type ontology:Q2342494 } UNION { ?h property:P248 ?d . ?h rdf:type ontology:Q43229 . ?d rdf:type ontology:Q5292 } } GROUP BY ?h } } }
action argmin
action union
action find_tuple_counts
relation stated in
type organization
type encyclopedia
action find_tuple_counts
relation stated in
type organization
type collectable
[{'concept': 'organization'}, 'stated in', [{'concept': 'encyclopedia'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?w WHERE { { ?w property:stated_in ?x . ?x rdf:type ontology:collectable . ?w rdf:type ontology:organization } UNION { ?w property:stated_in ?x . ?x rdf:type ontology:encyclopedia . ?w rdf:type ontology:organization } } GROUP BY ?w } . FILTER ( ?j = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { { ?h property:stated_in ?d . ?h rdf:type ontology:organization . ?d rdf:type ontology:collectable } UNION { ?h property:stated_in ?d . ?h rdf:type ontology:organization . ?d rdf:type ontology:encyclopedia } } GROUP BY ?h } } }
[]
encyclopedia collectable organization
Q12105874
SYSTEM
Zaporozhye aluminium combine
Q12105874
(c(Q43229),P248,c(Q5292)|c(Q2342494))
action argmin
action union
action find_tuple_counts
relation P248
type Q43229
type Q5292
action find_tuple_counts
relation P248
type Q43229
type Q2342494
[ANSWER] have been acknowledged in min number of encyclopedias or collectables
[{'concept': 'Q43229'}, 'P248', [{'concept': 'Q5292'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?w WHERE { { ?w property:P248 ?x . ?x rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q43229 } UNION { ?w property:P248 ?x . ?x rdf:type ontology:Q5292 . ?w rdf:type ontology:Q43229 } } GROUP BY ?w } . FILTER ( ?j = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { { ?h property:P248 ?d . ?h rdf:type ontology:Q43229 . ?d rdf:type ontology:Q2342494 } UNION { ?h property:P248 ?d . ?h rdf:type ontology:Q43229 . ?d rdf:type ontology:Q5292 } } GROUP BY ?h } } }
Zaporozhye aluminium combine
Zaporozhye aluminium combine have been acknowledged in min number of encyclopedias or collectables
Zaporozhye aluminium combine
action argmin
action union
action find_tuple_counts
relation stated in
type organization
type encyclopedia
action find_tuple_counts
relation stated in
type organization
type collectable
[{'concept': 'organization'}, 'stated in', [{'concept': 'encyclopedia'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?w WHERE { { ?w property:stated_in ?x . ?x rdf:type ontology:collectable . ?w rdf:type ontology:organization } UNION { ?w property:stated_in ?x . ?x rdf:type ontology:encyclopedia . ?w rdf:type ontology:organization } } GROUP BY ?w } . FILTER ( ?j = ?p ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { { ?h property:stated_in ?d . ?h rdf:type ontology:organization . ?d rdf:type ontology:collectable } UNION { ?h property:stated_in ?d . ?h rdf:type ontology:organization . ?d rdf:type ontology:encyclopedia } } GROUP BY ?h } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2833307 Q2297818
P27 P495
Q15617994
USER
Which administrative territories did Love Is the Devil: Study for a Portrait of Francis Bacon originate and are Alexandra Nice an inhabitant of ?
AND((Q2297818,P495,c(Q15617994)), (Q2833307,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2297818
relation P495
action find
entity Q2833307
relation P27
type Q15617994
{'AND': [['Q2297818', 'P495', {'concept': 'Q15617994'}], ['Q2833307', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q2833307 property:P27 ?x . resource:Q2297818 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Alexandra Nice Love Is the Devil: Study for a Portrait of Francis Bacon
action filter_type
action intersection
action find
entity Love Is the Devil: Study for a Portrait of Francis Bacon
relation country of origin
action find
entity Alexandra Nice
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Love Is the Devil: Study for a Portrait of Francis Bacon', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Alexandra Nice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Alexandra_Nice property:country_of_citizenship ?x . resource:Love_Is_the_Devil:_Study_for_a_Portrait_of_Francis_Bacon property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q2297818,P495,c(Q15617994)), (Q2833307,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2297818
relation P495
action find
entity Q2833307
relation P27
type Q15617994
Alexandra Nice and are an inhabitant of : the Devil Study for a Portrait of Francis Bacon Is originate from [ANSWER]
{'AND': [['Q2297818', 'P495', {'concept': 'Q15617994'}], ['Q2833307', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q2833307 property:P27 ?x . resource:Q2297818 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
France
Alexandra Nice and are an inhabitant of : the Devil Study for a Portrait of Francis Bacon Is originate from France
France
action filter_type
action intersection
action find
entity Love Is the Devil: Study for a Portrait of Francis Bacon
relation country of origin
action find
entity Alexandra Nice
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Love Is the Devil: Study for a Portrait of Francis Bacon', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Alexandra Nice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Alexandra_Nice property:country_of_citizenship ?x . resource:Love_Is_the_Devil:_Study_for_a_Portrait_of_Francis_Bacon property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q2385804 Q914262
USER
How many administrative territories are exactly 16 educational institutions or administrative territory of Swedens a part of ?
(c(Q2385804)|c(Q914262),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q914262
value 16
[[{'concept': 'Q2385804'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?v WHERE { VALUES ( ?m ) { ( ontology:Q2385804 ) ( ontology:Q914262 ) } . ?d rdf:type ?m } GROUP BY ?v } . FILTER ( ?y = 16 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity of Sweden
value 16
[[{'concept': 'educational institution'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?v WHERE { VALUES ( ?m ) { ( ontology:educational_institution ) ( ontology:administrative_territorial_entity_of_Sweden ) } . ?d rdf:type ?m } GROUP BY ?v } . FILTER ( ?y = 16 ) }
[]
designation for an administrative territorial entity educational institution administrative territorial entity of Sweden
SYSTEM
2
Q43 Q38
(c(Q2385804)|c(Q914262),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2385804
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q914262
value 16
[ANSWER]
[[{'concept': 'Q2385804'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?v WHERE { VALUES ( ?m ) { ( ontology:Q2385804 ) ( ontology:Q914262 ) } . ?d rdf:type ?m } GROUP BY ?v } . FILTER ( ?y = 16 ) }
Turkey Italy
2
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type educational institution
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity of Sweden
value 16
[[{'concept': 'educational institution'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?v WHERE { VALUES ( ?m ) { ( ontology:educational_institution ) ( ontology:administrative_territorial_entity_of_Sweden ) } . ?d rdf:type ?m } GROUP BY ?v } . FILTER ( ?y = 16 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2833307
P21
Q290
USER
Which sex does Alexandra Nice belong to ?
(Q2833307,P21,c(Q290))
action filter_type
action find
entity Q2833307
relation P21
type Q290
['Q2833307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q2833307 property:P21 ?n . ?n rdf:type ontology:Q290 }
Alexandra Nice
action filter_type
action find
entity Alexandra Nice
relation gender
type sex
['Alexandra Nice', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alexandra_Nice property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2833307,P21,c(Q290))
action filter_type
action find
entity Q2833307
relation P21
type Q290
Alexandra Nice belongs to [ANSWER]
['Q2833307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q2833307 property:P21 ?n . ?n rdf:type ontology:Q290 }
female
Alexandra Nice belongs to female
female
action filter_type
action find
entity Alexandra Nice
relation gender
type sex
['Alexandra Nice', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Alexandra_Nice property:gender ?n . ?n rdf:type ontology:sex }
[]