Simple Question (Direct)
Simple Question
Q5585084
P39
Q12737077
USER
Which occupation was a position held by Gordon Dunne ?
(Q5585084,P39,c(Q12737077))
action filter_type
action find
entity Q5585084
relation P39
type Q12737077
['Q5585084', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5585084 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Gordon Dunne
action filter_type
action find
entity Gordon Dunne
relation position held
type occupation
['Gordon Dunne', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Gordon_Dunne property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q3272410
SYSTEM
Member of the Legislative Assembly of Northern Ireland
Q3272410
(Q5585084,P39,c(Q12737077))
action filter_type
action find
entity Q5585084
relation P39
type Q12737077
The [ANSWER] was a position held by Gordon Dunne
['Q5585084', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5585084 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Member of the Legislative Assembly of Northern Ireland
The Member of the Legislative Assembly of Northern Ireland was a position held by Gordon Dunne
Member of the Legislative Assembly of Northern Ireland
action filter_type
action find
entity Gordon Dunne
relation position held
type occupation
['Gordon Dunne', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Gordon_Dunne property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q26666948 Q3272410
P17
Q15617994
USER
Which administrative territories are Member of the Legislative Assembly of Northern Ireland and Mill Hill Farmhouse present in ?
AND((Q3272410,P17,c(Q15617994)), (Q26666948,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3272410
relation P17
action find
entity Q26666948
relation P17
type Q15617994
{'AND': [['Q3272410', 'P17', {'concept': 'Q15617994'}], ['Q26666948', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3272410 property:P17 ?q . resource:Q26666948 property:P17 ?q }
Mill Hill Farmhouse Member of the Legislative Assembly of Northern Ireland
action filter_type
action intersection
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
action find
entity Mill Hill Farmhouse
relation country
type designation for an administrative territorial entity
{'AND': [['Member of the Legislative Assembly of Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Mill Hill Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country ?q . resource:Mill_Hill_Farmhouse property:country ?q }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q3272410,P17,c(Q15617994)), (Q26666948,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3272410
relation P17
action find
entity Q26666948
relation P17
type Q15617994
Which administrative territories is Member of the Legislative Assembly of Northern Ireland and Mill Hill Farmhouse present in
{'AND': [['Q3272410', 'P17', {'concept': 'Q15617994'}], ['Q26666948', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3272410 property:P17 ?q . resource:Q26666948 property:P17 ?q }
United Kingdom
Which administrative territories is Member of the Legislative Assembly of Northern Ireland and Mill Hill Farmhouse present in
United Kingdom
action filter_type
action intersection
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
action find
entity Mill Hill Farmhouse
relation country
type designation for an administrative territorial entity
{'AND': [['Member of the Legislative Assembly of Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Mill Hill Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country ?q . resource:Mill_Hill_Farmhouse property:country ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26666948
P1435
Q41176
USER
Which building is the heritage status of that house ?
(Q145,P1435,c(Q41176))
action filter_type
action find
entity Q26666948
relation P1435
type Q41176
['Q145', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?n WHERE { resource:Q26666948 property:P1435 ?n . ?n rdf:type ontology:Q41176 }
Mill Hill Farmhouse
action filter_type
action find
entity Mill Hill Farmhouse
relation heritage status
type building
['United Kingdom', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?n WHERE { resource:Mill_Hill_Farmhouse property:heritage_status ?n . ?n rdf:type ontology:building }
[]
building
Q15700834
SYSTEM
Grade II listed building
Q15700834
(Q145,P1435,c(Q41176))
action filter_type
action find
entity Q26666948
relation P1435
type Q41176
House [ANSWER] is the heritage status of that house
['Q145', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?n WHERE { resource:Q26666948 property:P1435 ?n . ?n rdf:type ontology:Q41176 }
Grade II listed building
House Grade II listed building is the heritage status of that house
Grade II listed building
action filter_type
action find
entity Mill Hill Farmhouse
relation heritage status
type building
['United Kingdom', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?n WHERE { resource:Mill_Hill_Farmhouse property:heritage_status ?n . ?n rdf:type ontology:building }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2666591
P921
Q12737077 Q386724 Q2342494
USER
Which occupations were greater number of works or collectables mainly about than Chair of the Federal Reserve ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2666591
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P921 resource:Q2666591 . { ?l rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } } } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?d WHERE { { ?y property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q386724 } UNION { ?y property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?d } }
Chair of the Federal Reserve
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity Chair of the Federal Reserve
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:main_subject resource:Chair_of_the_Federal_Reserve . { ?l rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work ) } } } } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?d WHERE { { ?y property:main_subject ?d . ?d rdf:type ontology:occupation . ?y rdf:type ontology:work } UNION { ?y property:main_subject ?d . ?d rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?d } }
[]
occupation work collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q16003605 Q49757 Q1238570 Q2259532 Q16003532
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2666591
relation P921
type Q386724
type Q2342494
The [ANSWERS] were greater number of works or collectables mainly about than Chair of the Federal Reserve
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P921 resource:Q2666591 . { ?l rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } } } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?d WHERE { { ?y property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q386724 } UNION { ?y property:P921 ?d . ?d rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?d } }
physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student elementary school student poet political scientist cleric middle school student
The architect, Member of the New Zealand House of Representatives and Member of the South Australian House of Assembly were greater number of works or collectables mainly about than Chair of the Federal Reserve
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity Chair of the Federal Reserve
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:main_subject resource:Chair_of_the_Federal_Reserve . { ?l rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work ) } } } } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) ?d WHERE { { ?y property:main_subject ?d . ?d rdf:type ontology:occupation . ?y rdf:type ontology:work } UNION { ?y property:main_subject ?d . ?d rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4991371
P921
Q12737077 Q386724 Q2342494
USER
And what about soldier?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q4991371
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) ?l WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . FILTER ( ?h > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P921 resource:Q4991371 . { { ?g rdf:type ontology:Q386724 } UNION { ?g rdf:type ontology:Q2342494 } } } } }
soldier
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity soldier
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) ?l WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?l } . FILTER ( ?h > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:main_subject resource:soldier . { { ?g rdf:type ontology:work } UNION { ?g rdf:type ontology:collectable } } } } }
[]
occupation work collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q16003605 Q49757 Q1238570 Q2259532 Q16003532
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q4991371
relation P921
type Q386724
type Q2342494
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) ?l WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . FILTER ( ?h > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P921 resource:Q4991371 . { { ?g rdf:type ontology:Q386724 } UNION { ?g rdf:type ontology:Q2342494 } } } } }
physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student elementary school student poet political scientist cleric middle school student
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity soldier
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) ?l WHERE { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?l } . FILTER ( ?h > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:main_subject resource:soldier . { { ?g rdf:type ontology:work } UNION { ?g rdf:type ontology:collectable } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3272410
P1001
Q56061
USER
Which administrative territory applies to jurisdiction of Member of the Legislative Assembly of Northern Ireland ?
(Q3272410,P1001,c(Q56061))
action filter_type
action find
entity Q3272410
relation P1001
type Q56061
['Q3272410', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3272410 property:P1001 ?p . ?p rdf:type ontology:Q56061 }
Member of the Legislative Assembly of Northern Ireland
action filter_type
action find
entity Member of the Legislative Assembly of Northern Ireland
relation applies to jurisdiction
type administrative territorial entity
['Member of the Legislative Assembly of Northern Ireland', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:applies_to_jurisdiction ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q26
SYSTEM
Northern Ireland
Q26
(Q3272410,P1001,c(Q56061))
action filter_type
action find
entity Q3272410
relation P1001
type Q56061
Ireland [ANSWER] applies to jurisdiction of Member of the Legislative Assembly of [ANSWER]
['Q3272410', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3272410 property:P1001 ?p . ?p rdf:type ontology:Q56061 }
Northern Ireland
Ireland Northern Ireland applies to jurisdiction of Member of the Legislative Assembly of Northern Ireland
Northern Ireland
action filter_type
action find
entity Member of the Legislative Assembly of Northern Ireland
relation applies to jurisdiction
type administrative territorial entity
['Member of the Legislative Assembly of Northern Ireland', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:applies_to_jurisdiction ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26
P176
Q2235308
USER
Which ship type was produced by that administrative territory ?
(c(Q2235308),P176,Q26)
action filter_type
action find_reverse
entity Q26
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q26']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2235308 . ?f property:P176 resource:Q26 }
Northern Ireland
action filter_type
action find_reverse
entity Northern Ireland
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Northern Ireland']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ship_type . ?f property:manufacturer resource:Northern_Ireland }
[]
ship type
Q2975739
SYSTEM
Algerine-class minesweeper
Q2975739
(c(Q2235308),P176,Q26)
action filter_type
action find_reverse
entity Q26
relation P176
type Q2235308
[ANSWER] was produced by that administrative territory
[{'concept': 'Q2235308'}, 'P176', 'Q26']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q2235308 . ?f property:P176 resource:Q26 }
Algerine-class minesweeper
Algerine-class minesweeper was produced by that administrative territory
Algerine-class minesweeper
action filter_type
action find_reverse
entity Northern Ireland
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Northern Ireland']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ship_type . ?f property:manufacturer resource:Northern_Ireland }
[]