Simple Question (Direct)
Simple Question
Q2958093
P39
Q12737077
USER
Which occupation was a position held by Charles-Grégoire de Beauchamps ?
(Q2958093,P39,c(Q12737077))
action filter_type
action find
entity Q2958093
relation P39
type Q12737077
['Q2958093', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q2958093 property:P39 ?u }
Charles-Grégoire de Beauchamps
action filter_type
action find
entity Charles-Grégoire de Beauchamps
relation position held
type occupation
['Charles-Grégoire de Beauchamps', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Charles-Grégoire_de_Beauchamps property:position_held ?u }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q2958093,P39,c(Q12737077))
action filter_type
action find
entity Q2958093
relation P39
type Q12737077
The member of the French National Assembly was a position held by Charles-Grégoire de Beauchamps
['Q2958093', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q2958093 property:P39 ?u }
member of the French National Assembly
The member of the French National Assembly was a position held by Charles-Grégoire de Beauchamps
member of the French National Assembly
action filter_type
action find
entity Charles-Grégoire de Beauchamps
relation position held
type occupation
['Charles-Grégoire de Beauchamps', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Charles-Grégoire_de_Beauchamps property:position_held ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2958093
P166
Q618779
USER
Which award was that person awarded with ?
(Q3044918,P166,c(Q618779))
action filter_type
action find
entity Q2958093
relation P166
type Q618779
['Q3044918', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q2958093 property:P166 ?g . ?g rdf:type ontology:Q618779 }
Charles-Grégoire de Beauchamps
action filter_type
action find
entity Charles-Grégoire de Beauchamps
relation award received
type award
['member of the French\xa0National Assembly', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Grégoire_de_Beauchamps property:award_received ?g . ?g rdf:type ontology:award }
[]
award
Q11593374
SYSTEM
Knight of the Royal and Military Order of Saint Louis
Q11593374
(Q3044918,P166,c(Q618779))
action filter_type
action find
entity Q2958093
relation P166
type Q618779
That person was awarded [ANSWER]
['Q3044918', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q2958093 property:P166 ?g . ?g rdf:type ontology:Q618779 }
Knight of the Royal and Military Order of Saint Louis
That person was awarded Knight of the Royal and Military Order of Saint Louis
Knight of the Royal and Military Order of Saint Louis
action filter_type
action find
entity Charles-Grégoire de Beauchamps
relation award received
type award
['member of the French\xa0National Assembly', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Grégoire_de_Beauchamps property:award_received ?g . ?g rdf:type ontology:award }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q35798 Q618779
USER
How many awards are a part of more number of executive branches than that award ?
(c(Q618779),P361,c(Q35798))
action count
action greater
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_type
action find
entity Q11593374
relation P361
type Q35798
[{'concept': 'Q618779'}, 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?p ) WHERE { ?u property:P361 ?m . ?u rdf:type ontology:Q618779 . ?m rdf:type ontology:Q35798 } GROUP BY ?u } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q11593374 property:P361 ?q . ?q rdf:type ontology:Q35798 } } }
action count
action greater
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_type
action find
entity Knight of the Royal and Military Order of Saint Louis
relation part of
type executive branch
[{'concept': 'award'}, 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?p ) WHERE { ?u property:part_of ?m . ?u rdf:type ontology:award . ?m rdf:type ontology:executive_branch } GROUP BY ?u } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Knight_of_the_Royal_and_Military_Order_of_Saint_Louis property:part_of ?q . ?q rdf:type ontology:executive_branch } } }
[]
executive branch award
SYSTEM
1
Q3068024
(c(Q618779),P361,c(Q35798))
action count
action greater
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_type
action find
entity Q11593374
relation P361
type Q35798
[ANSWER]
[{'concept': 'Q618779'}, 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?p ) WHERE { ?u property:P361 ?m . ?u rdf:type ontology:Q618779 . ?m rdf:type ontology:Q35798 } GROUP BY ?u } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q11593374 property:P361 ?q . ?q rdf:type ontology:Q35798 } } }
First Secretary of State
1
action count
action greater
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_type
action find
entity Knight of the Royal and Military Order of Saint Louis
relation part of
type executive branch
[{'concept': 'award'}, 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?p ) WHERE { ?u property:part_of ?m . ?u rdf:type ontology:award . ?m rdf:type ontology:executive_branch } GROUP BY ?u } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Knight_of_the_Royal_and_Military_Order_of_Saint_Louis property:part_of ?q . ?q rdf:type ontology:executive_branch } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11593374
P17
Q15617994
USER
Which administrative territory is Knight of the Royal and Military Order of Saint Louis located in ?
(Q11593374,P17,c(Q15617994))
action filter_type
action find
entity Q11593374
relation P17
type Q15617994
['Q11593374', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q11593374 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Knight of the Royal and Military Order of Saint Louis
action filter_type
action find
entity Knight of the Royal and Military Order of Saint Louis
relation country
type designation for an administrative territorial entity
['Knight of the Royal and Military Order of Saint Louis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Knight_of_the_Royal_and_Military_Order_of_Saint_Louis property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q11593374,P17,c(Q15617994))
action filter_type
action find
entity Q11593374
relation P17
type Q15617994
Knight of the Royal and Military Order of Saint Louis in is located in [ANSWER]
['Q11593374', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q11593374 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
France
Knight of the Royal and Military Order of Saint Louis in is located in France
France
action filter_type
action find
entity Knight of the Royal and Military Order of Saint Louis
relation country
type designation for an administrative territorial entity
['Knight of the Royal and Military Order of Saint Louis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Knight_of_the_Royal_and_Military_Order_of_Saint_Louis property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15407343 Q2958093
P19
Q20667921
USER
Which french administrative divisions are the birthplace of Charles-Grégoire de Beauchamps or Pierre-Valentin Berthier ?
OR((Q2958093,P19,c(Q20667921)), (Q15407343,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q2958093
relation P19
action find
entity Q15407343
relation P19
type Q20667921
{'OR': [['Q2958093', 'P19', {'concept': 'Q20667921'}], ['Q15407343', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q15407343 property:P19 ?j } UNION { resource:Q2958093 property:P19 ?j } } . ?j rdf:type ontology:Q20667921 }
Pierre-Valentin Berthier Charles-Grégoire de Beauchamps
action filter_type
action union
action find
entity Charles-Grégoire de Beauchamps
relation place of birth
action find
entity Pierre-Valentin Berthier
relation place of birth
type type of french administrative division
{'OR': [['Charles-Grégoire de Beauchamps', 'place of birth', {'concept': 'type of french administrative division'}], ['Pierre-Valentin Berthier', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Pierre-Valentin_Berthier property:place_of_birth ?j } UNION { resource:Charles-Grégoire_de_Beauchamps property:place_of_birth ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1350244 Q210772
SYSTEM
Cherbonnières, Issoudun
Q1350244 Q210772
OR((Q2958093,P19,c(Q20667921)), (Q15407343,P19,c(Q20667921)))
action filter_type
action union
action find
entity Q2958093
relation P19
action find
entity Q15407343
relation P19
type Q20667921
[ANSWERS] are the birthplace of Charles-Grégoire de Beauchamps or Pierre-Valentin Berthier
{'OR': [['Q2958093', 'P19', {'concept': 'Q20667921'}], ['Q15407343', 'P19', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q15407343 property:P19 ?j } UNION { resource:Q2958093 property:P19 ?j } } . ?j rdf:type ontology:Q20667921 }
Cherbonnières Issoudun
Cherbonnières and Issoudun are the birthplace of Charles-Grégoire de Beauchamps or Pierre-Valentin Berthier
Cherbonnières Issoudun
action filter_type
action union
action find
entity Charles-Grégoire de Beauchamps
relation place of birth
action find
entity Pierre-Valentin Berthier
relation place of birth
type type of french administrative division
{'OR': [['Charles-Grégoire de Beauchamps', 'place of birth', {'concept': 'type of french administrative division'}], ['Pierre-Valentin Berthier', 'place of birth', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Pierre-Valentin_Berthier property:place_of_birth ?j } UNION { resource:Charles-Grégoire_de_Beauchamps property:place_of_birth ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2505890
P748
Q1752346 Q178706 Q12737077
USER
Which occupations did greater number of assemblies and institutions appoint than Leader of the Government in the House of Commons ?
(c(Q12737077),P748,c(Q1752346)|c(Q178706))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action count
action filter_multi_types
action find
entity Q2505890
relation P748
type Q1752346
type Q178706
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?h WHERE { VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q1752346 ) } . ?j rdf:type ?r } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Q2505890 property:P748 ?i . { { ?i rdf:type ontology:Q1752346 } UNION { ?i rdf:type ontology:Q178706 } } } } . FILTER ( ?q > ?z ) }
Leader of the Government in the House of Commons
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type institution
action count
action filter_multi_types
action find
entity Leader of the Government in the House of Commons
relation appointed by
type assembly
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'institution'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?h WHERE { VALUES ( ?r ) { ( ontology:institution ) ( ontology:assembly ) } . ?j rdf:type ?r } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Leader_of_the_Government_in_the_House_of_Commons property:appointed_by ?i . { { ?i rdf:type ontology:assembly } UNION { ?i rdf:type ontology:institution } } } } . FILTER ( ?q > ?z ) }
[]
assembly institution occupation
Q81066 Q842386 Q1370482
SYSTEM
United Nations Secretary-General, Prime Minister of Russia, President of Cuba
Q740126 Q15305714 Q842386 Q19056310 Q890030 Q1161813 Q796593 Q7574264 Q8882 Q3409203 Q327948 Q1370482 Q634291 Q735587 Q81066 Q628102
(c(Q12737077),P748,c(Q1752346)|c(Q178706))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action count
action filter_multi_types
action find
entity Q2505890
relation P748
type Q1752346
type Q178706
Greater number of assemblies and institutions appointed by [ANSWERS] than Leader of the Government in the House of Commons
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?h WHERE { VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q1752346 ) } . ?j rdf:type ?r } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Q2505890 property:P748 ?i . { { ?i rdf:type ontology:Q1752346 } UNION { ?i rdf:type ontology:Q178706 } } } } . FILTER ( ?q > ?z ) }
President of the European Parliament Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of the United Nations General Assembly President of Malta Speaker of the Hellenic Parliament President of the European Commission President of Greece President of Israel President of Cuba High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General President of Nauru
Greater number of assemblies and institutions appointed by United Nations Secretary-General, Prime Minister of Russia and President of Cuba than Leader of the Government in the House of Commons
United Nations Secretary-General Prime Minister of Russia President of Cuba
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type institution
action count
action filter_multi_types
action find
entity Leader of the Government in the House of Commons
relation appointed by
type assembly
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'institution'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?h WHERE { VALUES ( ?r ) { ( ontology:institution ) ( ontology:assembly ) } . ?j rdf:type ?r } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Leader_of_the_Government_in_the_House_of_Commons property:appointed_by ?i . { { ?i rdf:type ontology:assembly } UNION { ?i rdf:type ontology:institution } } } } . FILTER ( ?q > ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3556884
P748
Q1752346 Q178706 Q12737077
USER
And also tell me about Deputy Prime Minister of Canada?
(c(Q12737077),P748,c(Q1752346)|c(Q178706))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action count
action filter_multi_types
action find
entity Q3556884
relation P748
type Q1752346
type Q178706
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?m WHERE { VALUES ( ?h ) { ( ontology:Q1752346 ) ( ontology:Q178706 ) } . ?z rdf:type ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q3556884 property:P748 ?r . { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1752346 ) ( ontology:Q178706 ) } } } } . FILTER ( ?p > ?d ) }
Deputy Prime Minister of Canada
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type institution
action count
action filter_multi_types
action find
entity Deputy Prime Minister of Canada
relation appointed by
type assembly
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'institution'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?m WHERE { VALUES ( ?h ) { ( ontology:assembly ) ( ontology:institution ) } . ?z rdf:type ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Deputy_Prime_Minister_of_Canada property:appointed_by ?r . { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:assembly ) ( ontology:institution ) } } } } . FILTER ( ?p > ?d ) }
[]
assembly institution occupation
Q81066 Q842386 Q1370482
SYSTEM
United Nations Secretary-General, Prime Minister of Russia, President of Cuba
Q740126 Q15305714 Q842386 Q19056310 Q890030 Q1161813 Q796593 Q7574264 Q8882 Q3409203 Q327948 Q1370482 Q634291 Q735587 Q81066 Q628102
(c(Q12737077),P748,c(Q1752346)|c(Q178706))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action count
action filter_multi_types
action find
entity Q3556884
relation P748
type Q1752346
type Q178706
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q178706'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?m WHERE { VALUES ( ?h ) { ( ontology:Q1752346 ) ( ontology:Q178706 ) } . ?z rdf:type ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q3556884 property:P748 ?r . { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1752346 ) ( ontology:Q178706 ) } } } } . FILTER ( ?p > ?d ) }
President of the European Parliament Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of the United Nations General Assembly President of Malta Speaker of the Hellenic Parliament President of the European Commission President of Greece President of Israel President of Cuba High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General President of Nauru
United Nations Secretary-General Prime Minister of Russia President of Cuba
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type institution
action count
action filter_multi_types
action find
entity Deputy Prime Minister of Canada
relation appointed by
type assembly
type institution
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'institution'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?m WHERE { VALUES ( ?h ) { ( ontology:assembly ) ( ontology:institution ) } . ?z rdf:type ?h } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Deputy_Prime_Minister_of_Canada property:appointed_by ?r . { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:assembly ) ( ontology:institution ) } } } } . FILTER ( ?p > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q80513
P417
Q502895 Q12737077
USER
How many people are the patron saint of less number of occupations than Saint Cecilia ?
(c(Q12737077),P417,c(Q502895))
action count
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q80513
relation P417
type Q12737077
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P417 ?y . ?y rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P417 resource:Q80513 . ?a rdf:type ontology:Q12737077 } } . FILTER ( ?n < ?w ) }
Saint Cecilia
action count
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Saint Cecilia
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:patron_saint ?y . ?y rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:patron_saint resource:Saint_Cecilia . ?a rdf:type ontology:occupation } } . FILTER ( ?n < ?w ) }
[]
common name occupation
SYSTEM
266
Q2366998 Q561838 Q380092 Q129674 Q133704 Q43945 Q3922154 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q31966 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q1502088 Q8413 Q558148 Q160373 Q515953 Q1274242 Q443392 Q379685 Q191479 Q42887 Q3745904 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q122376 Q145746 Q15284282 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q63070 Q134666 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q560531 Q4161703 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q445357 Q359878 Q190240 Q210096 Q1976199 Q3724316 Q1343711 Q3663117 Q534691 Q160374 Q442516 Q920226 Q283447 Q26486 Q158504 Q130005 Q740907 Q44258 Q70991 Q318974 Q312314 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q1269112 Q2424767 Q459032 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action count
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q80513
relation P417
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P417 ?y . ?y rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P417 resource:Q80513 . ?a rdf:type ontology:Q12737077 } } . FILTER ( ?n < ?w ) }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Jude the Apostle Prisco di Nocera Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Mark the Evangelist Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Maximilian of Lorch Romanus of Caesarea Saint Bibiana Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Callixtus I Joseph Adolphus Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus Mary Magdalene Stephen I Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Suitbert of Kaiserswerdt Dimitry Prilutsky Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Henry Erasmus of Formiae Cyprian Agnes of Rome Gaudentius of Novara Emilianus of Trevi Ephysius Castrese di Sessa Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Lambert of Maastricht Ladislaus I of Hungary Clement of Ohrid Edward the Confessor Barbatus of Benevento Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Bruno of Cologne Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Saint Ninian Anthony of Apamea Elizabeth Ann Seton Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
266
action count
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Saint Cecilia
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:patron_saint ?y . ?y rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:patron_saint resource:Saint_Cecilia . ?a rdf:type ontology:occupation } } . FILTER ( ?n < ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1087218
P159
Q20667921 Q7210356 Q43229
USER
How many french administrative divisions are the headquarters of less number of political organizations and organizations located than Aigrefeuille-d'Aunis ?
(c(Q7210356)|c(Q43229),P159,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q1087218
relation P159
type Q7210356
type Q43229
[[{'concept': 'Q7210356'}, {'concept': 'Q43229'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?c ) WHERE { { ?b property:P159 ?t . ?t rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7210356 } UNION { ?t rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q43229 . ?b property:P159 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P159 resource:Q1087218 . { { ?n rdf:type ontology:Q7210356 } UNION { ?n rdf:type ontology:Q43229 } } } } . FILTER ( ?c < ?o ) }
Aigrefeuille-d'Aunis
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action count
action filter_multi_types
action find_reverse
entity Aigrefeuille-d'Aunis
relation headquarters location
type political organization
type organization
[[{'concept': 'political organization'}, {'concept': 'organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?c ) WHERE { { ?b property:headquarters_location ?t . ?t rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:political_organization } UNION { ?t rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:organization . ?b property:headquarters_location ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:headquarters_location resource:Aigrefeuille-d'Aunis . { { ?n rdf:type ontology:political_organization } UNION { ?n rdf:type ontology:organization } } } } . FILTER ( ?c < ?o ) }
[]
type of french administrative division political organization organization
SYSTEM
194
Q753708 Q184359 Q1226504 Q1416478 Q1004486 Q816117 Q632276 Q404445 Q363100 Q615159 Q253939 Q1018637 Q274683 Q42807 Q126675 Q71469 Q213555 Q21948474 Q269430 Q1152867 Q1389275 Q194141 Q208794 Q194145 Q960827 Q233733 Q429770 Q188750 Q383388 Q1169872 Q816094 Q658928 Q212274 Q1111084 Q383369 Q234735 Q219045 Q47135 Q613323 Q207156 Q38380 Q369954 Q1469245 Q819946 Q694905 Q175999 Q42168 Q274774 Q269166 Q192426 Q163795 Q752979 Q184047 Q83432 Q171800 Q279681 Q727297 Q20441 Q334301 Q213285 Q273017 Q794124 Q239908 Q863574 Q752150 Q637676 Q185721 Q651379 Q175081 Q192481 Q1064869 Q910089 Q1615759 Q213515 Q323727 Q828625 Q372218 Q202565 Q243868 Q627252 Q477174 Q37719 Q208538 Q284762 Q1119799 Q165090 Q272420 Q265332 Q648073 Q661392 Q239123 Q384516 Q183910 Q454445 Q223692 Q1428824 Q1171684 Q268362 Q1066090 Q167024 Q291197 Q532070 Q242536 Q626342 Q132790 Q192378 Q733833 Q194160 Q666278 Q376986 Q1058168 Q213315 Q212987 Q331087 Q777493 Q46375 Q246199 Q174257 Q44160 Q637695 Q8848 Q242569 Q368160 Q724403 Q211134 Q752053 Q272906 Q963534 Q1055925 Q208314 Q209086 Q234728 Q212947 Q1344726 Q205584 Q205580 Q1066398 Q280296 Q41139 Q632969 Q1469428 Q177656 Q544220 Q655572 Q1063150 Q245080 Q1069745 Q1014814 Q130800 Q675950 Q605677 Q138648 Q208812 Q637279 Q791277 Q22390 Q680266 Q69990 Q271678 Q1063932 Q193895 Q180083 Q211923 Q6625 Q6588 Q474555 Q208770 Q214597 Q631274 Q203645 Q133069 Q269732 Q2087041 Q1058597 Q250399 Q269833 Q133824 Q28520 Q271407 Q69601 Q626156 Q208851 Q243597 Q193899 Q767320 Q836443 Q185075 Q6397 Q62958 Q372111 Q192982 Q188743 Q40898 Q21262
(c(Q7210356)|c(Q43229),P159,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q1087218
relation P159
type Q7210356
type Q43229
[ANSWER]
[[{'concept': 'Q7210356'}, {'concept': 'Q43229'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?c ) WHERE { { ?b property:P159 ?t . ?t rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7210356 } UNION { ?t rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q43229 . ?b property:P159 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P159 resource:Q1087218 . { { ?n rdf:type ontology:Q7210356 } UNION { ?n rdf:type ontology:Q43229 } } } } . FILTER ( ?c < ?o ) }
Giromagny Le Puy-en-Velay Ruaudin Incheville Macau Neauphle-le-Château Fontevraud-l'Abbaye Aiglepierre Miribel Ludes Pierrefitte-sur-Seine Méolans-Revel Abrest Nîmes Chantilly Corbie Corte Val-d'Oust Bourg-lès-Valence Montesquieu-Volvestre Verneuil-en-Halatte Draguignan Lunéville Château-Thierry Saint-Chef Ferney-Voltaire La Possession Saint-Estèphe Lillers Villebarou Signes Ay Nogent-sur-Marne La Crèche Wimereux Meudon Longjumeau Châlons-en-Champagne Aniche Pessac Angers Bry-sur-Marne Ormes Urville Fourchambault Le Pré-Saint-Gervais Clermont-Ferrand Viviers Fontenay-aux-Roses Le Val-d'Ajol Valenciennes Montoire-sur-le-Loir Aubagne Viroflay Évreux Thouars Romilly-sur-Seine Quetigny Berck Castelsarrasin Évian-les-Bains Saint-Rémy-lès-Chevreuse Saint-Pol-de-Léon Saint-Martin-de-Valgalgues Paray-Vieille-Poste Sommières Bar-le-Duc Janville Gap Talence Montesquieu Saint-Genis-Laval Saint-Cyr-au-Mont-d'Or Ancenis Loos-en-Gohelle Villebon-sur-Yvette Plaisir Coutances Saint-Martin-d'Hères Aubière Lambres Beaurainville Vierzon Baerenthal Toussus-le-Noble Chambéry Châteaufort Gray, Haute-Saône Saint-Marcel Rochetoirin Ermont Saint-Louis Bayeux Buzançais Cornillé Escalquens Chémeré-le-Roi Le Petit-Quevilly Fraisses Basse-Terre Bouguenais Poisy Champs-sur-Marne Trébeurden Biarritz Champigny-sur-Marne Pibrac Clamart Bétheny Lédenon Roissy-en-Brie Parthenay Choisy-le-Roi Creil Taissy Darois Garches Beauvais Toulon Saint-Genest-d'Ambière Valence Montgeron Saint-Julien-en-Genevois Hautot-le-Vatois Échirolles Saint-Ours Le Bourget Villiers-le-Bâcle Mont-Saint-Aignan Maisons-Alfort Pantin Vanves Châtillon Donneville Étampes Palaiseau Saint-Priest-en-Jarez Tain-l'Hermitage Melun Plombières-les-Bains Montagny Spézet Anzin Le Grand-Quevilly La Selle-en-Luitré Bourbon-l'Archambault Saint-Égrève Les Avirons Papeete Grans Limonest Maubeuge Corbeil-Essonnes Furiani Avon, Seine-et-Marne Mutzig Pringy, Haute-Savoie Guer Servon Chouilly Lattes Menton Les Sables-d'Olonne Agen Périgueux Castelnau-le-Lez Villefranche-sur-Saône Bellac Couëron Chalon-sur-Saône Bourg-en-Bresse Fécamp Dembeni Bordes Brie-Comte-Robert Chauny Issoire Abbeville Orvault Elven Pierre-Buffière Gif-sur-Yvette Culoz Fontenay-sous-Bois Ruillé-sur-Loir Chalezeule Saint-Germain-en-Laye Avignon Auray Romainville Cluny Lisieux Nancy Hangenbieten
194
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action count
action filter_multi_types
action find_reverse
entity Aigrefeuille-d'Aunis
relation headquarters location
type political organization
type organization
[[{'concept': 'political organization'}, {'concept': 'organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?c ) WHERE { { ?b property:headquarters_location ?t . ?t rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:political_organization } UNION { ?t rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:organization . ?b property:headquarters_location ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:headquarters_location resource:Aigrefeuille-d'Aunis . { { ?n rdf:type ontology:political_organization } UNION { ?n rdf:type ontology:organization } } } } . FILTER ( ?c < ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q93351
P159
Q20667921 Q7210356 Q43229
USER
And also tell me about Vichy?
(c(Q7210356)|c(Q43229),P159,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q93351
relation P159
type Q7210356
type Q43229
[[{'concept': 'Q7210356'}, {'concept': 'Q43229'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { { ?o property:P159 ?f . ?f rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q7210356 } UNION { ?o property:P159 ?f . ?f rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q43229 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:P159 resource:Q93351 . { { ?y rdf:type ontology:Q7210356 } UNION { ?y rdf:type ontology:Q43229 } } } } . FILTER ( ?d < ?a ) }
Vichy
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action count
action filter_multi_types
action find_reverse
entity Vichy
relation headquarters location
type political organization
type organization
[[{'concept': 'political organization'}, {'concept': 'organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { { ?o property:headquarters_location ?f . ?f rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:political_organization } UNION { ?o property:headquarters_location ?f . ?f rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:organization } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:headquarters_location resource:Vichy . { { ?y rdf:type ontology:political_organization } UNION { ?y rdf:type ontology:organization } } } } . FILTER ( ?d < ?a ) }
[]
type of french administrative division political organization organization
SYSTEM
194
Q753708 Q184359 Q1226504 Q1416478 Q1004486 Q816117 Q632276 Q404445 Q363100 Q615159 Q253939 Q1018637 Q274683 Q42807 Q126675 Q71469 Q213555 Q21948474 Q269430 Q1152867 Q1389275 Q194141 Q208794 Q194145 Q960827 Q233733 Q429770 Q188750 Q383388 Q1169872 Q816094 Q658928 Q212274 Q1111084 Q383369 Q234735 Q219045 Q47135 Q613323 Q207156 Q38380 Q369954 Q1469245 Q819946 Q694905 Q175999 Q42168 Q274774 Q269166 Q192426 Q163795 Q752979 Q184047 Q83432 Q171800 Q279681 Q727297 Q20441 Q334301 Q213285 Q273017 Q794124 Q239908 Q863574 Q752150 Q637676 Q185721 Q651379 Q175081 Q192481 Q1064869 Q910089 Q1615759 Q213515 Q323727 Q828625 Q372218 Q202565 Q243868 Q627252 Q477174 Q37719 Q208538 Q284762 Q1119799 Q165090 Q272420 Q265332 Q648073 Q661392 Q239123 Q384516 Q183910 Q454445 Q223692 Q1428824 Q1171684 Q268362 Q1066090 Q167024 Q291197 Q532070 Q242536 Q626342 Q132790 Q192378 Q733833 Q194160 Q666278 Q376986 Q1058168 Q213315 Q212987 Q331087 Q777493 Q46375 Q246199 Q174257 Q44160 Q637695 Q8848 Q242569 Q368160 Q724403 Q211134 Q752053 Q272906 Q963534 Q1055925 Q208314 Q209086 Q234728 Q212947 Q1344726 Q205584 Q205580 Q1066398 Q280296 Q41139 Q632969 Q1469428 Q177656 Q544220 Q655572 Q1063150 Q245080 Q1069745 Q1014814 Q130800 Q675950 Q605677 Q138648 Q208812 Q637279 Q791277 Q22390 Q680266 Q69990 Q271678 Q1063932 Q193895 Q180083 Q211923 Q6625 Q6588 Q474555 Q208770 Q214597 Q631274 Q203645 Q133069 Q269732 Q2087041 Q1058597 Q250399 Q269833 Q133824 Q28520 Q271407 Q69601 Q626156 Q208851 Q243597 Q193899 Q767320 Q836443 Q185075 Q6397 Q62958 Q372111 Q192982 Q188743 Q40898 Q21262
(c(Q7210356)|c(Q43229),P159,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q7210356
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q93351
relation P159
type Q7210356
type Q43229
[ANSWER]
[[{'concept': 'Q7210356'}, {'concept': 'Q43229'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { { ?o property:P159 ?f . ?f rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q7210356 } UNION { ?o property:P159 ?f . ?f rdf:type ontology:Q20667921 . ?o rdf:type ontology:Q43229 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:P159 resource:Q93351 . { { ?y rdf:type ontology:Q7210356 } UNION { ?y rdf:type ontology:Q43229 } } } } . FILTER ( ?d < ?a ) }
Giromagny Le Puy-en-Velay Ruaudin Incheville Macau Neauphle-le-Château Fontevraud-l'Abbaye Aiglepierre Miribel Ludes Pierrefitte-sur-Seine Méolans-Revel Abrest Nîmes Chantilly Corbie Corte Val-d'Oust Bourg-lès-Valence Montesquieu-Volvestre Verneuil-en-Halatte Draguignan Lunéville Château-Thierry Saint-Chef Ferney-Voltaire La Possession Saint-Estèphe Lillers Villebarou Signes Ay Nogent-sur-Marne La Crèche Wimereux Meudon Longjumeau Châlons-en-Champagne Aniche Pessac Angers Bry-sur-Marne Ormes Urville Fourchambault Le Pré-Saint-Gervais Clermont-Ferrand Viviers Fontenay-aux-Roses Le Val-d'Ajol Valenciennes Montoire-sur-le-Loir Aubagne Viroflay Évreux Thouars Romilly-sur-Seine Quetigny Berck Castelsarrasin Évian-les-Bains Saint-Rémy-lès-Chevreuse Saint-Pol-de-Léon Saint-Martin-de-Valgalgues Paray-Vieille-Poste Sommières Bar-le-Duc Janville Gap Talence Montesquieu Saint-Genis-Laval Saint-Cyr-au-Mont-d'Or Ancenis Loos-en-Gohelle Villebon-sur-Yvette Plaisir Coutances Saint-Martin-d'Hères Aubière Lambres Beaurainville Vierzon Baerenthal Toussus-le-Noble Chambéry Châteaufort Gray, Haute-Saône Saint-Marcel Rochetoirin Ermont Saint-Louis Bayeux Buzançais Cornillé Escalquens Chémeré-le-Roi Le Petit-Quevilly Fraisses Basse-Terre Bouguenais Poisy Champs-sur-Marne Trébeurden Biarritz Champigny-sur-Marne Pibrac Clamart Bétheny Lédenon Roissy-en-Brie Parthenay Choisy-le-Roi Creil Taissy Darois Garches Beauvais Toulon Saint-Genest-d'Ambière Valence Montgeron Saint-Julien-en-Genevois Hautot-le-Vatois Échirolles Saint-Ours Le Bourget Villiers-le-Bâcle Mont-Saint-Aignan Maisons-Alfort Pantin Vanves Châtillon Donneville Étampes Palaiseau Saint-Priest-en-Jarez Tain-l'Hermitage Melun Plombières-les-Bains Montagny Spézet Anzin Le Grand-Quevilly La Selle-en-Luitré Bourbon-l'Archambault Saint-Égrève Les Avirons Papeete Grans Limonest Maubeuge Corbeil-Essonnes Furiani Avon, Seine-et-Marne Mutzig Pringy, Haute-Savoie Guer Servon Chouilly Lattes Menton Les Sables-d'Olonne Agen Périgueux Castelnau-le-Lez Villefranche-sur-Saône Bellac Couëron Chalon-sur-Saône Bourg-en-Bresse Fécamp Dembeni Bordes Brie-Comte-Robert Chauny Issoire Abbeville Orvault Elven Pierre-Buffière Gif-sur-Yvette Culoz Fontenay-sous-Bois Ruillé-sur-Loir Chalezeule Saint-Germain-en-Laye Avignon Auray Romainville Cluny Lisieux Nancy Hangenbieten
194
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type political organization
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type organization
action count
action filter_multi_types
action find_reverse
entity Vichy
relation headquarters location
type political organization
type organization
[[{'concept': 'political organization'}, {'concept': 'organization'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { { ?o property:headquarters_location ?f . ?f rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:political_organization } UNION { ?o property:headquarters_location ?f . ?f rdf:type ontology:type_of_french_administrative_division . ?o rdf:type ontology:organization } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { ?y property:headquarters_location resource:Vichy . { { ?y rdf:type ontology:political_organization } UNION { ?y rdf:type ontology:organization } } } } . FILTER ( ?d < ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q81066
P748
Q178706
USER
How many institutions were person who apported United Nations Secretary-General ?
(Q81066,P748,c(Q178706))
action count
action filter_type
action find
entity Q81066
relation P748
type Q178706
['Q81066', 'P748', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q81066 property:P748 ?m . ?m rdf:type ontology:Q178706 }
United Nations Secretary-General
action count
action filter_type
action find
entity United Nations Secretary-General
relation appointed by
type institution
['United Nations Secretary-General', 'appointed by', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:United_Nations_Secretary-General property:appointed_by ?m . ?m rdf:type ontology:institution }
[]
institution
SYSTEM
1
Q47423
(Q81066,P748,c(Q178706))
action count
action filter_type
action find
entity Q81066
relation P748
type Q178706
[ANSWER]
['Q81066', 'P748', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q81066 property:P748 ?m . ?m rdf:type ontology:Q178706 }
United Nations General Assembly
1
action count
action filter_type
action find
entity United Nations Secretary-General
relation appointed by
type institution
['United Nations Secretary-General', 'appointed by', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:United_Nations_Secretary-General property:appointed_by ?m . ?m rdf:type ontology:institution }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q220893
Q178706
USER
And what about European Ombudsman?
(Q220893,P748,c(Q178706))
action count
action filter_type
action find
entity Q220893
relation P748
type Q178706
['Q220893', 'P748', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q220893 property:P748 ?h . ?h rdf:type ontology:Q178706 }
European Ombudsman
action count
action filter_type
action find
entity European Ombudsman
relation appointed by
type institution
['European Ombudsman', 'appointed by', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:European_Ombudsman property:appointed_by ?h . ?h rdf:type ontology:institution }
[]
institution
SYSTEM
1
(Q220893,P748,c(Q178706))
action count
action filter_type
action find
entity Q220893
relation P748
type Q178706
[ANSWER]
['Q220893', 'P748', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q220893 property:P748 ?h . ?h rdf:type ontology:Q178706 }
1
action count
action filter_type
action find
entity European Ombudsman
relation appointed by
type institution
['European Ombudsman', 'appointed by', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:European_Ombudsman property:appointed_by ?h . ?h rdf:type ontology:institution }
[]