Simple Question (Direct)
Simple Question
Q11303507
P39
Q12737077
USER
What were the positions held by Victor Carpentier ?
(Q11303507,P39,c(Q12737077))
action filter_type
action find
entity Q11303507
relation P39
type Q12737077
['Q11303507', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q11303507 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Victor Carpentier
action filter_type
action find
entity Victor Carpentier
relation position held
type occupation
['Victor Carpentier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Victor_Carpentier property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q15705021 Q17619252
SYSTEM
member of the Chamber of Representatives of Belgium, Senator of Belgium
Q15705021 Q17619252
(Q11303507,P39,c(Q12737077))
action filter_type
action find
entity Q11303507
relation P39
type Q12737077
The positions held by Victor Carpentier were [ANSWERS]
['Q11303507', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q11303507 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
member of the Chamber of Representatives of Belgium Senator of Belgium
The positions held by Victor Carpentier were member of the Chamber of Representatives of Belgium and Senator of Belgium
member of the Chamber of Representatives of Belgium Senator of Belgium
action filter_type
action find
entity Victor Carpentier
relation position held
type occupation
['Victor Carpentier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Victor_Carpentier property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11303507
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q15705021,P27,c(Q15617994)) (Q17619252,P27,c(Q15617994))
action filter_type
action find
entity Q11303507
relation P27
type Q15617994
['Q15705021', 'P27', {'concept': 'Q15617994'}] ['Q17619252', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q11303507 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Victor Carpentier
action filter_type
action find
entity Victor Carpentier
relation country of citizenship
type designation for an administrative territorial entity
['member of the Chamber of Representatives of Belgium', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Senator of Belgium', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Victor_Carpentier property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q15705021,P27,c(Q15617994)) (Q17619252,P27,c(Q15617994))
action filter_type
action find
entity Q11303507
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q15705021', 'P27', {'concept': 'Q15617994'}] ['Q17619252', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q11303507 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Belgium
The Belgium is that person an inhabitant of
Belgium
action filter_type
action find
entity Victor Carpentier
relation country of citizenship
type designation for an administrative territorial entity
['member of the Chamber of Representatives of Belgium', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Senator of Belgium', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Victor_Carpentier property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q31 Q239
P36
Q56061
USER
Is Brussels the capital of that administrative territory ?
(Q31,P36,Q239)
action is_in
entity Q239
action find
entity Q31
relation P36
['Q31', 'P36', 'Q239']
ASK WHERE { resource:Q31 property:P36 resource:Q239 }
Belgium Brussels
action is_in
entity Brussels
action find
entity Belgium
relation capital
['Belgium', 'capital', 'Brussels']
ASK WHERE { resource:Belgium property:capital resource:Brussels }
[]
administrative territorial entity
SYSTEM
YES
(Q31,P36,Q239)
action is_in
entity Q239
action find
entity Q31
relation P36
[ANSWER]
['Q31', 'P36', 'Q239']
ASK WHERE { resource:Q31 property:P36 resource:Q239 }
Yes
action is_in
entity Brussels
action find
entity Belgium
relation capital
['Belgium', 'capital', 'Brussels']
ASK WHERE { resource:Belgium property:capital resource:Brussels }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q810
P840
Q15617994 Q838948 Q166142
USER
How many administrative territories are around the same number of works of art and applications set in as Jordan ?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q810
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:P840 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } UNION { ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q166142 . ?s property:P840 ?g } } GROUP BY ?g } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P840 resource:Q810 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q166142 } } } } }
Jordan
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Jordan
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:narrative_location ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:application . ?s property:narrative_location ?g } } GROUP BY ?g } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:narrative_location resource:Jordan . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:application } } } } }
[]
designation for an administrative territorial entity work of art application
SYSTEM
143
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q1948 Q145 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q37 Q36 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q810
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:P840 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } UNION { ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q166142 . ?s property:P840 ?g } } GROUP BY ?g } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P840 resource:Q810 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q166142 } } } } }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Manitoba United Kingdom Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium Lithuania Poland Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
143
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Jordan
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?y ) WHERE { { ?s property:narrative_location ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:application . ?s property:narrative_location ?g } } GROUP BY ?g } . FILTER ( ?y = ?a ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:narrative_location resource:Jordan . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:application } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q913434
P840
Q15617994 Q838948 Q166142
USER
And how about Les Halles?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q913434
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?k ) WHERE { { ?y property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q166142 } UNION { ?y property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q838948 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P840 resource:Q913434 . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?k = ?c ) }
Les Halles
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Les Halles
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?k ) WHERE { { ?y property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:application } UNION { ?y property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:work_of_art } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:narrative_location resource:Les_Halles . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?k = ?c ) }
[]
designation for an administrative territorial entity work of art application
SYSTEM
143
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q1948 Q145 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q37 Q36 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q913434
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?k ) WHERE { { ?y property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q166142 } UNION { ?y property:P840 ?r . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q838948 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P840 resource:Q913434 . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?k = ?c ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Manitoba United Kingdom Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium Lithuania Poland Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
143
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Les Halles
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?k ) WHERE { { ?y property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:application } UNION { ?y property:narrative_location ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:work_of_art } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:narrative_location resource:Les_Halles . { ?p rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?k = ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11303507
P21
Q290
USER
What is the sex of Victor Carpentier ?
(Q11303507,P21,c(Q290))
action filter_type
action find
entity Q11303507
relation P21
type Q290
['Q11303507', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q11303507 property:P21 ?l . ?l rdf:type ontology:Q290 }
Victor Carpentier
action filter_type
action find
entity Victor Carpentier
relation gender
type sex
['Victor Carpentier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Carpentier property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11303507,P21,c(Q290))
action filter_type
action find
entity Q11303507
relation P21
type Q290
The sex of Victor Carpentier is the [ANSWER]
['Q11303507', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q11303507 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Victor Carpentier is the male
male
action filter_type
action find
entity Victor Carpentier
relation gender
type sex
['Victor Carpentier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Carpentier property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11303507
P106
Q12737077
USER
What are the job of Victor Carpentier ?
(Q11303507,P106,c(Q12737077))
action filter_type
action find
entity Q11303507
relation P106
type Q12737077
['Q11303507', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q11303507 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Victor Carpentier
action filter_type
action find
entity Victor Carpentier
relation occupation
type occupation
['Victor Carpentier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Victor_Carpentier property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955 Q806798
SYSTEM
politician, banker
Q82955 Q806798
(Q11303507,P106,c(Q12737077))
action filter_type
action find
entity Q11303507
relation P106
type Q12737077
The job of Victor Carpentier are a [ANSWERS]
['Q11303507', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q11303507 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician banker
The job of Victor Carpentier are a politician and banker
politician banker
action filter_type
action find
entity Victor Carpentier
relation occupation
type occupation
['Victor Carpentier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Victor_Carpentier property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q806798
P417
Q502895
USER
Which person is the patron saint of that occupation ?
(Q806798,P417,c(Q502895))
action filter_type
action find
entity Q806798
relation P417
type Q502895
['Q806798', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q806798 property:P417 ?o . ?o rdf:type ontology:Q502895 }
banker
action filter_type
action find
entity banker
relation patron saint
type common name
['banker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:banker property:patron_saint ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q806798
SYSTEM
Did you mean banker ?
Q82955 Q806798
(Q82955,P417,c(Q502895)) (Q806798,P417,c(Q502895))
[ANSWER]
['Q82955', 'P417', {'concept': 'Q502895'}] ['Q806798', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q806798 property:P417 ?o . ?o rdf:type ontology:Q502895 }
politician banker
Did you mean banker ?
banker
['politician', 'patron saint', {'concept': 'common name'}] ['banker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:banker property:patron_saint ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q806798,P417,c(Q502895))
['Q806798', 'P417', {'concept': 'Q502895'}]
['banker', 'patron saint', {'concept': 'common name'}]
[]
Q43600
SYSTEM
Matthew the Apostle
Q43600
(Q806798,P417,c(Q502895))
action filter_type
action find
entity Q806798
relation P417
type Q502895
[ANSWER] is the patron saint of that occupation
['Q806798', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q806798 property:P417 ?o . ?o rdf:type ontology:Q502895 }
Matthew the Apostle
Matthew the Apostle is the patron saint of that occupation
Matthew the Apostle
action filter_type
action find
entity banker
relation patron saint
type common name
['banker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:banker property:patron_saint ?o . ?o rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q16970 Q7725634
USER
How many people are lesser number of churches and literary works dedicated to than that person ?
(c(Q16970)|c(Q7725634),P825,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q43600
relation P825
type Q16970
type Q7725634
[[{'concept': 'Q16970'}, {'concept': 'Q7725634'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P825 resource:Q43600 . { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q16970 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?m WHERE { { ?y property:P825 ?m . ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q16970 } UNION { ?y property:P825 ?m . ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } } GROUP BY ?m } }
action count
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Matthew the Apostle
relation dedicated to
type church
type literary work
[[{'concept': 'church'}, {'concept': 'literary work'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:dedicated_to resource:Matthew_the_Apostle . { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:church ) ( ontology:literary_work ) } } } } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?m WHERE { { ?y property:dedicated_to ?m . ?m rdf:type ontology:common_name . ?y rdf:type ontology:church } UNION { ?y property:dedicated_to ?m . ?m rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } } GROUP BY ?m } }
[]
common name church literary work
SYSTEM
0
(c(Q16970)|c(Q7725634),P825,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q43600
relation P825
type Q16970
type Q7725634
[ANSWER]
[[{'concept': 'Q16970'}, {'concept': 'Q7725634'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P825 resource:Q43600 . { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q16970 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?m WHERE { { ?y property:P825 ?m . ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q16970 } UNION { ?y property:P825 ?m . ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } } GROUP BY ?m } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Matthew the Apostle
relation dedicated to
type church
type literary work
[[{'concept': 'church'}, {'concept': 'literary work'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:dedicated_to resource:Matthew_the_Apostle . { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:church ) ( ontology:literary_work ) } } } } . FILTER ( ?b < ?g ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?m WHERE { { ?y property:dedicated_to ?m . ?m rdf:type ontology:common_name . ?y rdf:type ontology:church } UNION { ?y property:dedicated_to ?m . ?m rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } } GROUP BY ?m } }
[]