Simple Question (Direct)
Simple Question
Q6847926
P102
Q7210356
USER
Which party is Mike McGinness affiliated with ?
(Q6847926,P102,c(Q7210356))
action filter_type
action find
entity Q6847926
relation P102
type Q7210356
['Q6847926', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q6847926 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Mike McGinness
action filter_type
action find
entity Mike McGinness
relation member of political party
type political organization
['Mike McGinness', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Mike_McGinness property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6847926,P102,c(Q7210356))
action filter_type
action find
entity Q6847926
relation P102
type Q7210356
Mike McGinness is affiliated with [ANSWER]
['Q6847926', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q6847926 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Republican Party
Mike McGinness is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Mike McGinness
relation member of political party
type political organization
['Mike McGinness', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Mike_McGinness property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6847926
P106
Q12737077
USER
What does that person do for a living ?
(Q29468,P106,c(Q12737077))
action filter_type
action find
entity Q6847926
relation P106
type Q12737077
['Q29468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6847926 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Mike McGinness
action filter_type
action find
entity Mike McGinness
relation occupation
type occupation
['Republican Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Mike_McGinness property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q29468,P106,c(Q12737077))
action filter_type
action find
entity Q6847926
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q29468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6847926 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Mike McGinness
relation occupation
type occupation
['Republican Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Mike_McGinness property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P921
Q12737077 Q732577 Q2342494
USER
Which occupations were the main subjects of approximately the same number of publications or collectables 's work as that occupation ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q732577
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) ?x WHERE { { ?n property:P921 ?x . ?n rdf:type ontology:Q732577 . ?x rdf:type ontology:Q12737077 } UNION { ?n property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P921 resource:Q82955 . { { ?b rdf:type ontology:Q732577 } UNION { ?b rdf:type ontology:Q2342494 } } } } . FILTER ( ?s = ?h ) }
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) ?x WHERE { { ?n property:main_subject ?x . ?n rdf:type ontology:publication . ?x rdf:type ontology:occupation } UNION { ?n property:main_subject ?x . ?x rdf:type ontology:occupation . ?n rdf:type ontology:collectable } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:main_subject resource:politician . { { ?b rdf:type ontology:publication } UNION { ?b rdf:type ontology:collectable } } } } . FILTER ( ?s = ?h ) }
[]
occupation publication collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q774306 Q3809586 Q83307 Q4610556 Q18145518 Q2094335 Q82955 Q730242 Q42973 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q15320003 Q16003605 Q49757 Q1238570 Q2259532
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q732577
type Q2342494
[ANSWERS] were the main subjects of approximately the same number of publications or collectables 's work as that occupation
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) ?x WHERE { { ?n property:P921 ?x . ?n rdf:type ontology:Q732577 . ?x rdf:type ontology:Q12737077 } UNION { ?n property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P921 resource:Q82955 . { { ?b rdf:type ontology:Q732577 } UNION { ?b rdf:type ontology:Q2342494 } } } } . FILTER ( ?s = ?h ) }
surgeon Wikipedian in Residence minister model Member of the New Zealand House of Representatives United States Attorney politician test pilot architect ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly migrant worker elementary school student poet political scientist cleric
Architect, Member of the New Zealand House of Representatives and Member of the South Australian House of Assembly were the main subjects of approximately the same number of publications or collectables 's work as that occupation
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) ?x WHERE { { ?n property:main_subject ?x . ?n rdf:type ontology:publication . ?x rdf:type ontology:occupation } UNION { ?n property:main_subject ?x . ?x rdf:type ontology:occupation . ?n rdf:type ontology:collectable } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:main_subject resource:politician . { { ?b rdf:type ontology:publication } UNION { ?b rdf:type ontology:collectable } } } } . FILTER ( ?s = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q42973
P106
Q82799 Q4830453
USER
How many names or business enterprises have the profession of architect ?
(c(Q82799),P106,Q42973) (c(Q4830453),P106,Q42973)
action count
action union
action filter_type
action find_reverse
entity Q42973
relation P106
type Q82799
action filter_type
action find_reverse
entity Q42973
relation P106
type Q4830453
[{'concept': 'Q82799'}, 'P106', 'Q42973'] [{'concept': 'Q4830453'}, 'P106', 'Q42973']
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:Q82799 ) ( ontology:Q4830453 ) } . ?r rdf:type ?p }
architect
action count
action union
action filter_type
action find_reverse
entity architect
relation occupation
type name
action filter_type
action find_reverse
entity architect
relation occupation
type business enterprise
[{'concept': 'name'}, 'occupation', 'architect'] [{'concept': 'business enterprise'}, 'occupation', 'architect']
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:name ) ( ontology:business_enterprise ) } . ?r rdf:type ?p }
[]
name business enterprise
SYSTEM
15
Q7147740 Q5545664 Q447814 Q6504568 Q3299806 Q2074328 Q7159066 Q6135237 Q371506 Q5608650 Q7326771 Q5291106 Q8004777 Q5075781 Q1225543
(c(Q82799),P106,Q42973) (c(Q4830453),P106,Q42973)
action count
action union
action filter_type
action find_reverse
entity Q42973
relation P106
type Q82799
action filter_type
action find_reverse
entity Q42973
relation P106
type Q4830453
[ANSWER]
[{'concept': 'Q82799'}, 'P106', 'Q42973'] [{'concept': 'Q4830453'}, 'P106', 'Q42973']
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:Q82799 ) ( ontology:Q4830453 ) } . ?r rdf:type ?p }
Patrick Tighe George W. Kelham Joanna Chmielewska Lawrence Scarpa Matthew Sullivan Peter Chermayeff Peddle Thorp Neil Denari Emery Roth Gridley James Fox Bryant Richard J. Shaw Dominique Berninger William B. Colleary Charles Brigham Elizabeth Diller
15
action count
action union
action filter_type
action find_reverse
entity architect
relation occupation
type name
action filter_type
action find_reverse
entity architect
relation occupation
type business enterprise
[{'concept': 'name'}, 'occupation', 'architect'] [{'concept': 'business enterprise'}, 'occupation', 'architect']
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:name ) ( ontology:business_enterprise ) } . ?r rdf:type ?p }
[]