Simple Question (Direct)
Simple Question
Q16066893
P69
Q163740
USER
Which nonprofit organizations were Walter R. Herrick educated at ?
(Q16066893,P69,c(Q163740))
action filter_type
action find
entity Q16066893
relation P69
type Q163740
['Q16066893', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q163740 . resource:Q16066893 property:P69 ?g }
Walter R. Herrick
action filter_type
action find
entity Walter R. Herrick
relation educated at
type nonprofit organization
['Walter R. Herrick', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:nonprofit_organization . resource:Walter_R._Herrick property:educated_at ?g }
[]
nonprofit organization
Q4709336 Q21578
SYSTEM
Albany Law School, Princeton University
Q4709336 Q21578
(Q16066893,P69,c(Q163740))
action filter_type
action find
entity Q16066893
relation P69
type Q163740
[ANSWERS] were Walter R. Herrick educated at
['Q16066893', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q163740 . resource:Q16066893 property:P69 ?g }
Albany Law School Princeton University
Albany Law School and Princeton University were Walter R. Herrick educated at
Albany Law School Princeton University
action filter_type
action find
entity Walter R. Herrick
relation educated at
type nonprofit organization
['Walter R. Herrick', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:nonprofit_organization . resource:Walter_R._Herrick property:educated_at ?g }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4709336 Q21578
P17
Q15617994
USER
Which administrative territories are those nonprofit organizations present in ?
(Q4709336,P17,c(Q15617994)) (Q21578,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q4709336', 'P17', {'concept': 'Q15617994'}] ['Q21578', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?q ) { ( resource:Q4709336 ) ( resource:Q21578 ) } . ?q property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Albany Law School Princeton University
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Albany Law School', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Princeton University', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?q ) { ( resource:Albany_Law_School ) ( resource:Princeton_University ) } . ?q property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q4709336,P17,c(Q15617994)) (Q21578,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those nonprofit organizations are the [ANSWER] and [ANSWER]
['Q4709336', 'P17', {'concept': 'Q15617994'}] ['Q21578', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?q ) { ( resource:Q4709336 ) ( resource:Q21578 ) } . ?q property:P17 ?c . ?c rdf:type ontology:Q15617994 }
United States of America United States of America
Those nonprofit organizations are the United States of America and United States of America
United States of America United States of America
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Albany Law School', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Princeton University', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?q ) { ( resource:Albany_Law_School ) ( resource:Princeton_University ) } . ?q property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16066893
P102
Q7210356
USER
Which party is Walter R. Herrick affiliated with ?
(Q16066893,P102,c(Q7210356))
action filter_type
action find
entity Q16066893
relation P102
type Q7210356
['Q16066893', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { resource:Q16066893 property:P102 ?j . ?j rdf:type ontology:Q7210356 }
Walter R. Herrick
action filter_type
action find
entity Walter R. Herrick
relation member of political party
type political organization
['Walter R. Herrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { resource:Walter_R._Herrick property:member_of_political_party ?j . ?j rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16066893,P102,c(Q7210356))
action filter_type
action find
entity Q16066893
relation P102
type Q7210356
Walter R. Herrick is affiliated with [ANSWER]
['Q16066893', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { resource:Q16066893 property:P102 ?j . ?j rdf:type ontology:Q7210356 }
Democratic Party
Walter R. Herrick is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Walter R. Herrick
relation member of political party
type political organization
['Walter R. Herrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { resource:Walter_R._Herrick property:member_of_political_party ?j . ?j rdf:type ontology:political_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q1777515 Q13220204
USER
Which administrative territories are max number of junctions and administrative country subdivisions named after ?
(c(Q1777515)|c(Q13220204),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q1777515
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
[[{'concept': 'Q1777515'}, {'concept': 'Q13220204'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P138 ?d . ?y rdf:type ontology:Q1777515 . ?d rdf:type ontology:Q15617994 } UNION { ?y rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q15617994 . ?y property:P138 ?d } } GROUP BY ?d } } . { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1777515 ) ( ontology:Q13220204 ) } } GROUP BY ?h } . FILTER ( ?g = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type junction
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'junction'}, {'concept': 'second-level administrative country subdivision'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:named_after ?d . ?y rdf:type ontology:junction . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:named_after ?d } } GROUP BY ?d } } . { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?v . VALUES ( ?v ) { ( ontology:junction ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } . FILTER ( ?g = ?l ) }
[]
designation for an administrative territorial entity junction second-level administrative country subdivision
Q2871 Q3898 Q14870
SYSTEM
Hagen, Castrop-Rauxel, Siegburg
Q2871 Q3898 Q159856 Q2719360 Q2596432 Q14870
(c(Q1777515)|c(Q13220204),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q1777515
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q13220204
Named after Hagen [ANSWERS]
[[{'concept': 'Q1777515'}, {'concept': 'Q13220204'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:P138 ?d . ?y rdf:type ontology:Q1777515 . ?d rdf:type ontology:Q15617994 } UNION { ?y rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q15617994 . ?y property:P138 ?d } } GROUP BY ?d } } . { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1777515 ) ( ontology:Q13220204 ) } } GROUP BY ?h } . FILTER ( ?g = ?l ) }
Hagen Castrop-Rauxel Duchy of Brabant Duchy of Luxembourg Euvelgunne Siegburg
Named after Hagen Hagen, Castrop-Rauxel and Siegburg
Hagen Castrop-Rauxel Siegburg
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type junction
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'junction'}, {'concept': 'second-level administrative country subdivision'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?l ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { { ?y property:named_after ?d . ?y rdf:type ontology:junction . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:named_after ?d } } GROUP BY ?d } } . { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?v . VALUES ( ?v ) { ( ontology:junction ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } . FILTER ( ?g = ?l ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2871
P6
Q502895
USER
Who are the heads of the government of Hagen ?
(Q2871,P6,c(Q502895))
action filter_type
action find
entity Q2871
relation P6
type Q502895
['Q2871', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q2871 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Hagen
action filter_type
action find
entity Hagen
relation head of government
type common name
['Hagen', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Hagen property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q1000195 Q17321481 Q1715281
SYSTEM
Dietmar Thieser, Erik O. Schulz, Jörg Dehm
Q17321481 Q1715281 Q1632376 Q2571219 Q1000195
(Q2871,P6,c(Q502895))
action filter_type
action find
entity Q2871
relation P6
type Q502895
The heads of the government of Hagen are [ANSWERS]
['Q2871', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q2871 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Erik O. Schulz Jörg Dehm Peter Demnitz Wilfried Horn Dietmar Thieser
The heads of the government of Hagen are Dietmar Thieser, Erik O. Schulz and Jörg Dehm
Dietmar Thieser Erik O. Schulz Jörg Dehm
action filter_type
action find
entity Hagen
relation head of government
type common name
['Hagen', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Hagen property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]